From 70a14b121363971bec43d436423c93ee6e604dc3 Mon Sep 17 00:00:00 2001 From: Abhay Rana Date: Tue, 25 Nov 2014 07:05:25 +0530 Subject: [PATCH] Disable only logitech mouse scroll --- xsetup | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xsetup b/xsetup index 1e34936..29da145 100755 --- a/xsetup +++ b/xsetup @@ -10,4 +10,8 @@ synclient VertTwoFingerScroll=1 # Disables the capslock key setxkbmap -option caps:none # This disables the faulty mouse wheel scroll on my usb mouse -xinput set-button-map 13 1 2 3 0 0 \ No newline at end of file +MOUSE_ID=`xinput list |grep Logitech|egrep "[0-9]{2}" -o` +if [[ $MOUSE_ID ]]; then + echo "Logitech Mouse connected. Disabling Scroll" + xinput set-button-map $MOUSE_ID 1 2 3 0 0 +fi