Skip to content

Instantly share code, notes, and snippets.

@lo48576
Last active January 1, 2021 13:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lo48576/90ed577e3a0d528c08faf5dc7ce05ded to your computer and use it in GitHub Desktop.
Save lo48576/90ed577e3a0d528c08faf5dc7ce05ded to your computer and use it in GitHub Desktop.
Buttons config for DEFT Pro
# /etc/X11/xorg.conf.d/60-lo48576-elecom.conf
Section "InputClass"
Identifier "Elecom USB Trackball Wheel Emulation"
MatchVendor "ELECOM"
MatchProduct "DEFT Pro"
MatchIsPointer "yes"
Driver "evdev"
Option "EmulateWheel" "true"
# 1: Left button
# 2: Middle button (wheel click)
# 3: Right button
# 8: Back
# 9: Forward
# 10: Fn1
# 11: Fn2
# 12: Fn3
Option "EmulateWheelButton" "11"
Option "Emulate3Buttons" "false"
Option "XAxisMapping" "6 7"
Option "YAxisMapping" "4 5"
# 11 -> 2: Use Fn2 as wheel click
# 12 -> 2: Use Fn3 as wheel click
Option "ButtonMapping" "1 2 3 4 5 6 7 8 9 10 2 2"
EndSection
Section "InputClass"
Identifier "Elecom Bluetooth Trackball Wheel Emulation"
MatchProduct "DEFT Pro TrackBall"
MatchIsPointer "yes"
Driver "evdev"
Option "EmulateWheel" "true"
# 1: Left button
# 2: Middle button (wheel click)
# 3: Right button
# 8: Back
# 9: Forward
# 10: Fn1
# 11: Fn2
# 12: Fn3
Option "EmulateWheelButton" "11"
Option "Emulate3Buttons" "false"
Option "XAxisMapping" "6 7"
Option "YAxisMapping" "4 5"
# 11 -> 2: Use Fn2 as wheel click
# 12 -> 2: Use Fn3 as wheel click
Option "ButtonMapping" "1 2 3 4 5 6 7 8 9 10 2 2"
EndSection
# vim: set ft=xf86conf :
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment