forked from mirrors/nixpkgs
cd15b3a30a
This commits deprecates `services.xserver.libinput` for multiple settings, one for each kind of device: - `services.xserver.libinput.mouse` - `services.xserver.libinput.touchpad` Looking at `man 4 libinput`, they basically have the same options so I simply replicated them, even if some options doesn't make sense for mouse (`tapping` for example). With this commit this is now possible: ```nix { services.xserver.libinput = { enable = true; mouse = { accelProfile = "flat"; }; touchpad = { naturalScrolling = true; }; }; } ``` And you will have a mouse with no natural scrolling but with accel profile flat, while touchpad will have natural scrolling but accel profile adaptative (default). It is possible to support more device types (tablets/keyboards/touchscreens), but at least looking at the libinput manual for those devices it doesn't seem that it has any configuration options for them. They can still be configured using `services.xserver.inputClassSections` though, and this will work now since there is no rule by default that matches them. Closes issue #75007, while also making configuration of mouses and touchpads using Nix attrs possible like said in PR #73785. |
||
---|---|---|
.. | ||
desktop-managers | ||
display-managers | ||
hardware | ||
window-managers | ||
clight.nix | ||
colord.nix | ||
extra-layouts.nix | ||
fractalart.nix | ||
gdk-pixbuf.nix | ||
imwheel.nix | ||
picom.nix | ||
redshift.nix | ||
terminal-server.nix | ||
unclutter-xfixes.nix | ||
unclutter.nix | ||
urserver.nix | ||
urxvtd.nix | ||
xautolock.nix | ||
xbanish.nix | ||
xfs.conf | ||
xfs.nix | ||
xserver.nix |