From 181373ef6ddf3e429c3850711bf611f06e6878e1 Mon Sep 17 00:00:00 2001 From: Baitinq Date: Sat, 16 Jul 2022 12:43:54 +0200 Subject: Disable touchpad if usb mouse connected --- dotfiles/.xinitrc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'dotfiles') 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 -- cgit 1.4.1