Skip to content

Instantly share code, notes, and snippets.

@Gonzih
Created January 11, 2014 17:54
Show Gist options
  • Select an option

  • Save Gonzih/8374286 to your computer and use it in GitHub Desktop.

Select an option

Save Gonzih/8374286 to your computer and use it in GitHub Desktop.
Logitech Marble Mouse Configuration (append section to file)
#/etc/X11/xorg.conf.d/10-evdev.conf
Section "InputClass"
Identifier "Marble Mouse"
MatchProduct "Logitech USB Trackball"
MatchIsPointer "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
# Physical button #s: A b D - - - - B C b = A & D simultaneously; - = no button
# Option "ButtonMapping" "1 8 3 4 5 6 7 2 2"
Option "ButtonMapping" "1 2 3 4 5 6 7 2 8" # From my configuration
# Option "ButtonMapping" "1 8 3 4 5 6 7 2 2" # For right-hand placement
# Option "ButtonMapping" "3 8 1 4 5 6 7 2 2" # For left-hand placement
#
# EmulateWheel refers to emulating a mouse wheel using Marble Mouse trackball.
Option "GrabDevice" "true"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "8" # Factory default; use "9" for left-side placement.
Option "EmulateWheelInertia" "30" # Factory default: 50
Option "EmulateWheelTimeout" "1"
# Option "EmulateWheelButton" "9"
Option "ZAxisMapping" "4 5"
# Option "XAxisMapping" "6 7" # Disable this for vertical-only scrolling.
# Emulate3Buttons refers to the act of pressing buttons A and D
# simultaneously to emulate a middle-click or wheel click.
Option "Emulate3Buttons" "true"
# Option "Emulate3Buttons" "true" # Factory default.
EndSection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment