Skip to content

Instantly share code, notes, and snippets.

@evinasgu
Created February 16, 2019 20:33
Show Gist options
  • Save evinasgu/d1dbeb2c6c31fba8927b6b3f8d9a3e59 to your computer and use it in GitHub Desktop.
Save evinasgu/d1dbeb2c6c31fba8927b6b3f8d9a3e59 to your computer and use it in GitHub Desktop.
COnfiguration for M570 trackball
Section "InputClass"
# User-defined name for this profile/input class
Identifier "Logitech M570"
# Tailed /var/log/Xorg.0.log to figure out the following
MatchProduct "Logitech M570"
MatchIsPointer "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
## OPTIONS
Option "SendCoreEvents" "true"
# EmulateWheel refers to emulating a mouse wheel using the trackball
Option "EmulateWheel" "true"
# Set to middle-click
Option "EmulateWheelButton" "9"
# Affects distance trackball needs to move register scroll movement
Option "EmulateWheelInertia" "10"
# Timeout between EmulateWheelButton click and "emulation" to begin
Option "EmulateWheelTimeout" "200"
# Comment out XAxis if you don't want horizontal scroll
Option "ZAxisMapping" "4 5"
Option "XAxisMapping" "6 7"
Option "DeviceAccelProfile" "2"
Option "AdaptiveDeceleration" "2"
Option "VelocityScale" "1.7
EndSection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment