This is my libinput configuration for my ELECOM HUGE trackball:
Section "InputClass"
Identifier "ELECOM trackball catchall"
MatchProduct "ELECOM TrackBall Mouse HUGE TrackBall"
MatchVendor "ELECOM_TrackBall_Mouse"
MatchIsPointer "on"
Driver "libinput"
Option "Buttons" "12"
Option "ButtonMapping" "1 2 3 4 5 6 7 2 2 2 11 12" # Fwd, Bwd, Fn1 act as middle mouse button
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "12"
Option "EmulateWheelTimeout" "0"
Option "ScrollMethod" "button"
Option "ScrollButton" "12"
EndSection
Sometimes it cumbersome to use the scrool wheel with the thumb, the configuration above remaps the button Fn3
. Holding it down, you can scroll comfortably using the ball.
Also, being a fond user of the command line, I often use the middle button for pasting selected text. The configuration maps the buttons Fwd
, Bwd
and Fn1
to also act as middle button. Less movement for the thumb.