From 0990e98c36af38dcfef73fe315747a4de4d69200 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Wed, 30 Jun 2021 10:24:38 -0400 Subject: [PATCH] trackpoint accel on x1c7 --- features/desktopish/touchpad-trackpoint.nix | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/features/desktopish/touchpad-trackpoint.nix b/features/desktopish/touchpad-trackpoint.nix index 98924fb..900b65c 100644 --- a/features/desktopish/touchpad-trackpoint.nix +++ b/features/desktopish/touchpad-trackpoint.nix @@ -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 + ]; }