diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-07-16 12:43:54 +0200 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-07-16 13:47:15 +0200 |
commit | 181373ef6ddf3e429c3850711bf611f06e6878e1 (patch) | |
tree | 2203d33a16b59d5c29e8705d944f917342a809f0 | |
parent | Enable rtorrent (diff) | |
download | nixos-config-181373ef6ddf3e429c3850711bf611f06e6878e1.tar.gz nixos-config-181373ef6ddf3e429c3850711bf611f06e6878e1.tar.bz2 nixos-config-181373ef6ddf3e429c3850711bf611f06e6878e1.zip |
Disable touchpad if usb mouse connected
-rw-r--r-- | dotfiles/.xinitrc | 4 | ||||
-rw-r--r-- | hosts/phobos/default.nix | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/dotfiles/.xinitrc b/dotfiles/.xinitrc index 1920a74..44cbad2 100644 --- a/dotfiles/.xinitrc +++ b/dotfiles/.xinitrc @@ -65,6 +65,10 @@ dunst & dwmbar & +if lsusb --verbose 2>&1 | grep --quiet "Mouse"; then + synclient TouchPadOff="1" +fi + while :; do ssh-agent smart-wallpaper -d ~/Images/Wallpapers/Day -n ~/Images/Wallpapers/Night -l $LOCATION -r; done & exec xmonad 2> /tmp/xmonad.log diff --git a/hosts/phobos/default.nix b/hosts/phobos/default.nix index 274cdcb..5bdd524 100644 --- a/hosts/phobos/default.nix +++ b/hosts/phobos/default.nix @@ -29,6 +29,12 @@ steam.enable = true; }; + /* services.udev.extraRules = '' + SUBSYSTEM=="input", ACTION=="add", ATTRS{bInterfaceProtocol}=="02", ATTRS{bInterfaceClass}=="03", ATTRS{bInterfaceSubClass}=="01", ENV{DISPLAY}=":0", ENV{XAUTHORITY}="/home/${user}/.Xauthority", RUN+="${pkgs.xorg.xf86inputsynaptics}/bin/synclient TouchpadOff=1" + SUBSYSTEM=="input", ACTION=="remove", ATTRS{bInterfaceProtocol}=="02", ATTRS{bInterfaceClass}=="03", ATTRS{bInterfaceSubClass}=="01", ENV{DISPLAY}=":0", ENV{XAUTHORITY}="/home/${user}/.Xauthority", RUN+="${pkgs.xorg.xf86inputsynaptics}/bin/synclient TouchpadOff=0" + ''; + */ + environment.etc."nix-index/files".source = inputs.nix-index.legacyPackages.x86_64-linux.database; } |