Skip to content

Instantly share code, notes, and snippets.

@derlin
Created February 24, 2017 18:58
Show Gist options
  • Save derlin/6d4def032c18a91d82c4955b1140c932 to your computer and use it in GitHub Desktop.
Save derlin/6d4def032c18a91d82c4955b1140c932 to your computer and use it in GitHub Desktop.
xorg configuration for my Logitech Marblemouse (left-handed)
Section "InputClass"
Identifier "Marble Mouse"
MatchProduct "Logitech USB Trackball"
MatchIsPointer "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
Option "SendCoreEvents" "true"
# Physical buttons come from the mouse as:
# Big: 1 3
# Small: 8 9
#
# This makes left small button (8) into the middle, and puts
# scrolling on the right small button (9).
#
Option "Emulate3Buttons" "true"
Option "Buttons" "9"
Option "ButtonMapping" "1 2 3 4 5 6 7 8 9"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "9"
EndSection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment