mirror of https://github.com/captn3m0/Scripts.git
Disable only logitech mouse scroll
This commit is contained in:
parent
a09225ce37
commit
70a14b1213
6
xsetup
6
xsetup
|
@ -10,4 +10,8 @@ synclient VertTwoFingerScroll=1
|
||||||
# Disables the capslock key
|
# Disables the capslock key
|
||||||
setxkbmap -option caps:none
|
setxkbmap -option caps:none
|
||||||
# This disables the faulty mouse wheel scroll on my usb mouse
|
# This disables the faulty mouse wheel scroll on my usb mouse
|
||||||
xinput set-button-map 13 1 2 3 0 0
|
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
|
||||||
|
|
Loading…
Reference in New Issue