Advertisement
timatgca

libinput tweak

Oct 13th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.53 KB | None | 0 0
  1. DEVICE="Logitech USB Receiver Mouse"
  2. #note: there are two devices with the same name, both pointer devices
  3. for id in $(xinput list | grep "$DEVICE" |  grep pointer | cut -d '=' -f 2 | cut -f 1)
  4.         do
  5. #               xinput --set-prop $id "libinput Button Scrolling Button" 9;
  6.                 xinput --set-prop $id "libinput Button Scrolling Button" 2;
  7.                 xinput --set-prop $id "libinput Scroll Method Enabled" 0, 0, 1;
  8.                 xinput --set-prop $id "libinput Natural Scrolling Enabled" 1;
  9.  
  10.         done
  11.  
  12. set +x
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement