mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nixos/libinput: apply options to all device types
Instead of assign the libinput options to touchpad devices only, it should be appied by any device using libinput. Due to the fact that `40-libinput.conf` already defines libinput as driver for any detected input device, we can use `MatchDriver` to appy options.
This commit is contained in:
parent
cdc5bcdea5
commit
d6169284c4
1 changed files with 3 additions and 3 deletions
|
@ -209,12 +209,12 @@ in {
|
||||||
|
|
||||||
services.xserver.config =
|
services.xserver.config =
|
||||||
''
|
''
|
||||||
# Automatically enable the libinput driver for all touchpads.
|
# General libinput configuration.
|
||||||
|
# See CONFIGURATION DETAILS section of man:libinput(4).
|
||||||
Section "InputClass"
|
Section "InputClass"
|
||||||
Identifier "libinputConfiguration"
|
Identifier "libinputConfiguration"
|
||||||
MatchIsTouchpad "on"
|
MatchDriver "libinput"
|
||||||
${optionalString (cfg.dev != null) ''MatchDevicePath "${cfg.dev}"''}
|
${optionalString (cfg.dev != null) ''MatchDevicePath "${cfg.dev}"''}
|
||||||
Driver "libinput"
|
|
||||||
Option "AccelProfile" "${cfg.accelProfile}"
|
Option "AccelProfile" "${cfg.accelProfile}"
|
||||||
${optionalString (cfg.accelSpeed != null) ''Option "AccelSpeed" "${cfg.accelSpeed}"''}
|
${optionalString (cfg.accelSpeed != null) ''Option "AccelSpeed" "${cfg.accelSpeed}"''}
|
||||||
${optionalString (cfg.buttonMapping != null) ''Option "ButtonMapping" "${cfg.buttonMapping}"''}
|
${optionalString (cfg.buttonMapping != null) ''Option "ButtonMapping" "${cfg.buttonMapping}"''}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue