Skip to content

Instantly share code, notes, and snippets.

@derlin
Created November 21, 2016 10:56
Show Gist options
  • Save derlin/0dd486418a47d79057dd6fd8a92ca117 to your computer and use it in GitHub Desktop.
Save derlin/0dd486418a47d79057dd6fd8a92ca117 to your computer and use it in GitHub Desktop.
Logitech USB Trackball - Ubuntu Gnome 16.04
# left and right click reversed, scroll with small right button, middle click with small right button, go back with small left button
# xinput buttons: left-click middle-click right-click wheel-up wheel-down -wheel-left wheel-right thumb1 thumb-2 extbt7 extbt8
xinput set-button-map "Logitech USB Trackball" 3 9 1 4 5 6 7 8 2 # left-handed
xinput set-int-prop "Logitech USB Trackball" "Evdev Wheel Emulation Button" 8 9 # wheel on small button right
xinput set-int-prop "Logitech USB Trackball" "Evdev Wheel Emulation" 8 8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment