From f462f7f91aa7144d20c8ece04affe0b080ff82ee Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Thu, 3 Sep 2020 00:08:52 +0200 Subject: [PATCH] fixing mouse issue --- modules/system/x11.nix | 1 + system/desktop/x11.nix | 16 ++++++++-------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/modules/system/x11.nix b/modules/system/x11.nix index f8a93ad..211fcd8 100644 --- a/modules/system/x11.nix +++ b/modules/system/x11.nix @@ -42,6 +42,7 @@ in { windowManager = { xmonad.enable = true; xmonad.enableContribAndExtras = true; + i3.enable = true; }; # mouse/touchpad diff --git a/system/desktop/x11.nix b/system/desktop/x11.nix index 3a617dd..626d0b8 100644 --- a/system/desktop/x11.nix +++ b/system/desktop/x11.nix @@ -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) ]; }