mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-05 17:56:46 +01: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
|
@ -209,12 +209,12 @@ in {
|
|||
|
||||
services.xserver.config =
|
||||
''
|
||||
# Automatically enable the libinput driver for all touchpads.
|
||||
# General libinput configuration.
|
||||
# See CONFIGURATION DETAILS section of man:libinput(4).
|
||||
Section "InputClass"
|
||||
Identifier "libinputConfiguration"
|
||||
MatchIsTouchpad "on"
|
||||
MatchDriver "libinput"
|
||||
${optionalString (cfg.dev != null) ''MatchDevicePath "${cfg.dev}"''}
|
||||
Driver "libinput"
|
||||
Option "AccelProfile" "${cfg.accelProfile}"
|
||||
${optionalString (cfg.accelSpeed != null) ''Option "AccelSpeed" "${cfg.accelSpeed}"''}
|
||||
${optionalString (cfg.buttonMapping != null) ''Option "ButtonMapping" "${cfg.buttonMapping}"''}
|
||||
|
|
Loading…
Reference in a new issue