Skip to content

Instantly share code, notes, and snippets.

@niya3
Last active July 2, 2018 19:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save niya3/5ffd8bd516692df410b375462ccdcad9 to your computer and use it in GitHub Desktop.
Save niya3/5ffd8bd516692df410b375462ccdcad9 to your computer and use it in GitHub Desktop.
trackball linux settings
xset mouse 6 4 #pointer acceleration with threshold
Section "InputClass"
Identifier "Marble Mouse"
MatchProduct "Logitech USB Trackball"
Option "ButtonMapping" "1 2 2 4 5 6 7 3 8"
Driver "evdev"
MatchIsPointer "on"
MatchDevicePath "/dev/input/event*"
Option "SendCoreEvents" "true"
Option "Buttons" "9"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "3" #scroll on large-right-button
Option "ZAxisMapping" "4 5"
Option "XAxisMapping" "6 7"
## libinput acceleration support status???
# Driver "libinput"
# Option "ScrollButton" "3"
# Option "ScrollMethod" "button"
# Option "MiddleEmulation" "on"
EndSection
#
#1 Large button left left-click -> same
#2 Both large buttons middle-click -> same
#3 Large button right right-click -> middle
#4 (not a button) -
#5 (not a button) -
#6 (not a button) -
#7 (not a button) -
#8 Small button left browser back -> right
#9 Small button right browser forward -> back
@niya3
Copy link
Author

niya3 commented Jul 2, 2018

play with buttons mapping without wm restart

$ xinput set-button-map "Logitech USB Trackball" 1 2 2 4 5 6 7 3 8

@niya3
Copy link
Author

niya3 commented Jul 2, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment