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 = { windowManager = {
xmonad.enable = true; xmonad.enable = true;
xmonad.enableContribAndExtras = true; xmonad.enableContribAndExtras = true;
i3.enable = true;
}; };
# mouse/touchpad # mouse/touchpad

View file

@ -11,14 +11,14 @@
# xinput list < to show devices # xinput list < to show devices
# https://unix.stackexchange.com/questions/90572/how-can-i-set-mouse-sensitivity-not-just-mouse-acceleration # https://unix.stackexchange.com/questions/90572/how-can-i-set-mouse-sensitivity-not-just-mouse-acceleration
services.xserver.displayManager.sessionCommands = let #services.xserver.displayManager.sessionCommands = let
mouseSpeed = name: speed: '' # mouseSpeed = name: speed: ''
${pkgs.xlibs.xinput}/bin/xinput set-prop "${name}" "Coordinate Transformation Matrix" ${ # ${pkgs.xlibs.xinput}/bin/xinput set-prop "${name}" "Coordinate Transformation Matrix" ${
toString speed # toString speed
} 0 0 0 ${toString speed} 0 0 0 1 || true # } 0 0 0 ${toString speed} 0 0 0 1 || true
''; # '';
in lib.concatStringsSep "\n" #in lib.concatStringsSep "\n"
[ (mouseSpeed "Logitech Gaming Mouse G400" 3.1) ]; #[ (mouseSpeed "Logitech Gaming Mouse G400" 3.1) ];
} }