theba: use libinput

This commit is contained in:
Gabriel Ebner 2016-09-21 09:11:01 -04:00
parent e49e3ea6e1
commit 72d40d20fa
1 changed files with 6 additions and 17 deletions

View File

@ -23,28 +23,17 @@
} }
]; ];
# workaround until trackpad is supported properly
boot.extraModprobeConfig = ''
options psmouse proto=imps
'';
hardware.trackpoint = {
enable = true;
# emulateWheel = true;
};
services.xserver = { services.xserver = {
libinput.enable = true;
config = '' config = ''
Section "InputClass" Section "InputClass"
Identifier "Trackpoint Wheel Emulation" Identifier "touchpad"
MatchProduct "PS/2 Synaptics TouchPad" Driver "libinput"
MatchDevicePath "/dev/input/event*" MatchDevicePath "/dev/input/event*"
Option "EmulateWheel" "true" MatchIsPointer "true"
Option "EmulateWheelButton" "2"
Option "Emulate3Buttons" "false"
Option "XAxisMapping" "6 7"
Option "YAxisMapping" "4 5"
EndSection EndSection
''; '';
videoDrivers = [ "modesetting" ]; videoDrivers = [ "modesetting" ];
useGlamor = true; useGlamor = true;
}; };