trackpoint accel on x1c7

This commit is contained in:
Sridhar Ratnakumar 2021-06-30 10:24:38 -04:00
parent 89a5c66949
commit 0990e98c36

View file

@ -11,12 +11,23 @@
# Tap to click
touchpad.tapping = true;
};
hardware.trackpoint = {
enable = true;
sensitivity = 240;
speed = 250;
device = "TPPS/2 Elan TrackPoint"; # Check with `xinput`
# FIXME: This doesn't have any effect. Wheras `xinput set-prop` (on CLI) does.
#sensitivity = 240;
#speed = 250;
};
# Automating the aforementioned `xinput set-prop` ...
services.xserver.displayManager.sessionCommands = ''
${pkgs.xorg.xinput} --set-prop 'TPPS/2 Elan TrackPoint' 'libinput Accel Speed' 0.8
'';
environment.systemPackages = with pkgs; [
libinput # libinput CLI
];
}