fixing mouse issue

This commit is contained in:
Ingolf Wagner 2020-09-03 00:08:52 +02:00
parent 025c31e7ae
commit f462f7f91a
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
2 changed files with 9 additions and 8 deletions

View file

@ -42,6 +42,7 @@ in {
windowManager = {
xmonad.enable = true;
xmonad.enableContribAndExtras = true;
i3.enable = true;
};
# mouse/touchpad

View file

@ -11,14 +11,14 @@
# 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) ];
#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) ];
}