Skip to content

Instantly share code, notes, and snippets.

@mshroyer
Created January 11, 2018 01:29
Show Gist options
  • Save mshroyer/f05b904fd33e45fd3dd78ba3ba7c42d9 to your computer and use it in GitHub Desktop.
Save mshroyer/f05b904fd33e45fd3dd78ba3ba7c42d9 to your computer and use it in GitHub Desktop.
#!/bin/sh
# From Arch Linux wiki
#xmodmap -e "pointer = 1 8 3 4 5 6 7 2 9 10 11 12 13"
# Based on https://help.ubuntu.com/community/Logitech_Marblemouse_USB, but
# with modifications to the button map and inverted axes for scrolling.
xinput set-button-map "Logitech USB Trackball" 1 8 3 4 5 6 7 2 9
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 7 6 5 4
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment