Created
January 11, 2018 01:29
-
-
Save mshroyer/f05b904fd33e45fd3dd78ba3ba7c42d9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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