Skip to content

Instantly share code, notes, and snippets.

@kerikun11
Last active January 2, 2024 16:57
Show Gist options
  • Save kerikun11/e623b388a984f8848006d159ec9291a3 to your computer and use it in GitHub Desktop.
Save kerikun11/e623b388a984f8848006d159ec9291a3 to your computer and use it in GitHub Desktop.
DEFT PRO with libinput driver in Linux

DEFT PRO with libinput in Linux

# /etc/X11/xorg.conf.d/30-trackball.conf

Section "InputClass"
	Identifier "ELECOM Bluetooth Trackball Wheel Emulation"
	MatchProduct "DEFT Pro TrackBall"
	MatchIsPointer "yes"
	Driver "libinput"
	# see man 4 libinput
	Option "ButtonMapping" "1 2 3 4 5 6 7 8 9 1 2 2"
	Option "ScrollMethod" "button"
	Option "ScrollButton" "12"
	# DEFT PRO Buttons:
	#    1: Left button
	#    2: Middle button (wheel click)
	#    3: Right button
	#    4: Wheel scroll up
	#    5: Wheel scroll down
	#    6: Wheel tilt left
	#    7: Wheel tilt right
	#    8: Back button
	#    9: Forward button
	#   10: Fn1 (button on the left of the ball)
	#   11: Fn2 (button on right most)
	#   12: Fn3 (button on the above of the slide switch)
EndSection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment