Skip to content

Instantly share code, notes, and snippets.

@weakish
Created September 13, 2013 09:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save weakish/6548447 to your computer and use it in GitHub Desktop.
Save weakish/6548447 to your computer and use it in GitHub Desktop.
configure Logitech Marble trackball on Debian wheezy
# put this file under /usr/share/X11/xorg.conf.d/
# The default setting for middle-button-enabled in Gnome is false.
# Since Gnome settings are applied after xorg settings, this results in middle button emulation disabled. To fix this, run the following in a terminal:
#
# gsettings set org.gnome.settings-daemon.peripherals.mouse middle-button-enabled true
#
# This needs to be done only once for each user - Gnome remembers this setting between logins.
Section "InputClass"
Identifier "Marble Mouse"
MatchProduct "Logitech USB Trackball"
MatchIsPointer "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
Option "SendCoreEvents" "true"
Option "Buttons" "9"
Option "ButtonMapping" "1 8 3 4 5 6 7 2 9"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "8"
Option "YAxisMapping" "4 5"
Option "XAxisMapping" "6 7"
EndSection
@pivaldi
Copy link

pivaldi commented Nov 7, 2016

Better button mapping (to my mind) here : https://gist.github.com/pivaldi/58a382efc4472f66e9cbe07be85ff41a

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