Skip to content

Instantly share code, notes, and snippets.

@wsgac
Last active July 2, 2019 23:12
Show Gist options
  • Save wsgac/39b02f1f17e44eaa06c367fcbb64a5e6 to your computer and use it in GitHub Desktop.
Save wsgac/39b02f1f17e44eaa06c367fcbb64a5e6 to your computer and use it in GitHub Desktop.
CST Laser Trackball Xorg configuration
# Alternative to 'evdev'. I needed this one to get CST working under Suse Tumbleweed.
Section "InputClass"
Identifier "CST Trackball"
MatchProduct "Clearly Superior Technologies. CST Laser Trackball"
Driver "libinput"
Option "ScrollMethod" "button"
Option "ScrollButton" "2"
Option "HorizontalScrolling" "true"
Option "MiddleEmulation" "true"
Option "ButtonMapping" "1 2 3 4 5 6 7 2 8"
EndSection
# This should go into /usr/share/X11/xorg.conf.d/10-evdev.conf (at
# least for Debian derivatives). /etc/X11/xorg.conf might also be a
# good place, provided it exists.
# Positions:
# 1 - Left Button
# 2 - Both Buttons
# 3 - Right Button
# 4 - Ball Down
# 5 - Ball Up
# 6 - Ball Left
# 7 - Ball Right
# 8 - Small Left Button
# 9 - Small Right Button
# Actions:
# 1 - Left Click
# 2 - Middle Click
# 3 - Right Click
# 4 - Cursor Down
# 5 - Cursor Up
# 6 - Cursor Left
# 7 - Cursor Right
# 8 - Browser Back
# 9 - Browser Forward
# Configuration for CST 2545w Laser Trackball
# The only customization here is setting the middle button (Button 2)
# to emulate wheel and to have 2 dimensional scrolling when the button
# is pressed.
Section "InputClass"
Identifier "Clearly Superior Technologies. CST Laser Trackball"
MatchProduct "Trackball"
Option "ButtonMapping" "1 2 3 4 5 6 7 8 9"
Option "EmulateWheel" "True"
Option "EmulateWheelButton" "2"
Option "ZAxisMapping" "4 5"
Option "XAxisMapping" "6 7"
Option "Emulate3Buttons" "true"
EndSection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment