Skip to content

Instantly share code, notes, and snippets.

@pivaldi
Forked from weakish/50-marblemouse.conf
Last active January 1, 2023 12:01
Show Gist options
  • Save pivaldi/58a382efc4472f66e9cbe07be85ff41a to your computer and use it in GitHub Desktop.
Save pivaldi/58a382efc4472f66e9cbe07be85ff41a to your computer and use it in GitHub Desktop.
Xorg Logitech Marble Trackball Config on Debian
# put this file under /usr/share/X11/xorg.conf.d/50-marblemouse.conf
# Large button left : normal click
# Both large buttons : middle click
# Large button right : right-click
# Small button left : browser back
# Small button left+ball : scroll (verticaly or horizontally)
# Small button right : browser forward
Section "InputClass"
Identifier "Marble Mouse"
MatchProduct "Logitech USB Trackball"
MatchIsPointer "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
Option "SendCoreEvents" "true"
# Option "ButtonMapping" "1 8 3 4 5 6 7 2 9" # This mapping is tricky
Option "Buttons" "9"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "8 8"
Option "YAxisMapping" "4 5"
Option "XAxisMapping" "6 7"
Option "Emulate3Buttons" "true"
EndSection
@aedaniel411
Copy link

Thanks for this ... just what I needed

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