No means to remap mouse buttons under Wayland
Hello. I am a user of the classic Logitech Marble Mouse (aka Trackman Marble), mainly because I haven't found a more comfortable trackball for general use. This trackball has four buttons and no scroll wheel. By default, both X11 and Wayland map the two middle buttons to "Back" and "Forward", and automatically treat pressing both Left and Right buttons as the Middle button.
While this configuration works, my preference is to map the left inner button as a true middle button, and the right inner button as a scroll modifier. The latter can be accomplished on Wayland by setting org.gnome.desktop.peripherals.trackball scroll-wheel-emulation-button
, but the former cannot. On X11, I would use the ButtonMapping
option to a value of 1 8 3 4 5 6 7 2 9
, but I believe this is a feature of xserver-xorg-input-libinput
rather than libinput itself, so it wouldn't be quite so easy to just "enable it". It is mentioned in the libinput X.org manpage if you wish to look it up.
As this is a somewhat advanced feature, I'm fine if it is initially only available via gsettings
, similar to how the scroll-wheel-emulation-button
setting is at present.
I am presently running Debian Testing (working towards Bookworm/12) and Gnome 40.
I have attached a photo of the trackball in question for reference.