Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DEVICE="Logitech USB Receiver Mouse"
- #note: there are two devices with the same name, both pointer devices
- for id in $(xinput list | grep "$DEVICE" | grep pointer | cut -d '=' -f 2 | cut -f 1)
- do
- # xinput --set-prop $id "libinput Button Scrolling Button" 9;
- xinput --set-prop $id "libinput Button Scrolling Button" 2;
- xinput --set-prop $id "libinput Scroll Method Enabled" 0, 0, 1;
- xinput --set-prop $id "libinput Natural Scrolling Enabled" 1;
- done
- set +x
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement