From 49d523a5847e8e3da581032c7da12c25571f81fb Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Sun, 12 Jul 2020 16:17:43 +0200 Subject: [PATCH] configure mouse speed --- system/desktop/x11.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/system/desktop/x11.nix b/system/desktop/x11.nix index e613dab..3a617dd 100644 --- a/system/desktop/x11.nix +++ b/system/desktop/x11.nix @@ -9,5 +9,16 @@ system.custom.fonts.enable = true; + # xinput list < to show devices + # https://unix.stackexchange.com/questions/90572/how-can-i-set-mouse-sensitivity-not-just-mouse-acceleration + services.xserver.displayManager.sessionCommands = let + mouseSpeed = name: speed: '' + ${pkgs.xlibs.xinput}/bin/xinput set-prop "${name}" "Coordinate Transformation Matrix" ${ + toString speed + } 0 0 0 ${toString speed} 0 0 0 1 || true + ''; + in lib.concatStringsSep "\n" + [ (mouseSpeed "Logitech Gaming Mouse G400" 3.1) ]; + }