Skip to content

Instantly share code, notes, and snippets.

@derlin
Last active September 24, 2017 11:26
Show Gist options
  • Save derlin/6f3988f4e7d5b60f624aa3595128f8f8 to your computer and use it in GitHub Desktop.
Save derlin/6f3988f4e7d5b60f624aa3595128f8f8 to your computer and use it in GitHub Desktop.
# 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 8
xinput set-int-prop "Logitech USB Trackball" "Evdev Wheel Emulation" 8 1
xinput set-int-prop "Logitech USB Trackball" "Evdev Wheel Emulation Axes" 8 6 7 4 5
xinput set-int-prop "Logitech USB Trackball" "Evdev Wheel Emulation X Axis" 8 6
xinput set-int-prop "Logitech USB Trackball" "Evdev Drag Lock Buttons" 8 9
xinput --set-prop "Logitech USB Trackball" "libinput Button Scrolling Button" 9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment