Skip to content

Instantly share code, notes, and snippets.

@frank-bg
Last active March 3, 2023 00:03
Show Gist options
  • Save frank-bg/119f5ba1a5386cd38df34e563be18e14 to your computer and use it in GitHub Desktop.
Save frank-bg/119f5ba1a5386cd38df34e563be18e14 to your computer and use it in GitHub Desktop.
Logitech TrackMan Marble Mouse
# this maps button 8 to middle click and enable scroll whit trackball pressing button 9
# put this on /usr/share/X11/xorg.conf.d/39-libinput.conf
# refs:
# https://help.ubuntu.com/community/Logitech_Marblemouse_USB
# https://jcastellssala.com/2016/10/29/logitech-trackman-in-linux/
Section "InputClass"
Identifier "Marble Mouse"
MatchProduct "Logitech USB Trackball"
Driver "libinput"
Option "ButtonMapping" "1 8 3 4 5 6 7 2 0"
Option "ScrollMethod" "button"
Option "ScrollButton" "9"
# Option "MiddleEmulation" "on"
EndSection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment