Input

Trackball click as a left mouse button

One xinput line remaps the ball's middle-button click to a left click on X11; firmware or libinput hwdb rules do the same job elsewhere.

Compatibility
Universal
Difficulty
Easy
Status
Available
Author
Daniel_Segel
Added
Source
ClockworkPi forum

What it takes

  • Config change

Difficulty 1 of 3 — easy.

Details

Daniel_Segel's recipe: find the device with xinput list ('ClockworkPI uConsole Mouse'), then xinput set-button-map "ClockworkPI uConsole Mouse" 1 1 3 4 5 6 7 8 9 10 11 12, run at login from a crontab @reboot line or your session startup. It only works under X11; on Wayland (Bookworm 6.12 and later images) it does nothing, and the replies point to systemd hwdb/libinput remapping or a firmware change instead.

Daniel later changed trackball.ino and keymaps.ino for a permanent version and shared the diffs, and Mykhailo_Chuha reports building it once the library versions were sorted.

Open at Forum thread
  • trackball
  • xinput
  • mouse

← Back to Input