Skip to content

Instantly share code, notes, and snippets.

@WaffleLapkin
Created March 9, 2024 22:38
Show Gist options
  • Save WaffleLapkin/8b0b739b705e91a0dd9babccd0907267 to your computer and use it in GitHub Desktop.
Save WaffleLapkin/8b0b739b705e91a0dd9babccd0907267 to your computer and use it in GitHub Desktop.
/etc/X11/xorg.conf.d/40-libinput.conf
Section "InputClass"
Identifier "ELECOM TrackBall Mouse HUGE TrackBall"
MatchProduct "ELECOM TrackBall Mouse HUGE TrackBall"
Driver "libinput"
# idx | phisical button | logical action
# ----+------------------------------------+-----------------
# 1 | "L" button, under the scroll wheel | LMK
# 2 | scroll wheel button | MMK
# 3 | R button, to the right of the ball | RMK
# 4 | Scroll up | Scroll up
# 5 | Scroll down | Scroll Down
# 6 | Scroll left | Scroll left
# 7 | Scroll Right | Scroll Right
# 8 | Back, towards you b. on the side | Back (?)
# 9 | Fwd, the other b. on the side | Forward (?)
# 10 | Fn1 | N/A (?)
# 11 | Fn2 | N/A (?)
# 12 | Fn3 | N/A (?)
Option "ButtonMapping" "13 14 15 4 5 16 17 2 18 1 3 19"
Option "Scrollmethod" "button"
Option "ScrollButton" "3"
#Option "DragLockButtons" "10 1"
#Option "HorizontalScrolling" "False"
EndSection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment