0

So, before 22.04, I was able to reprogram my Kensington 4-button mouse using xinput. Now under Wayland, I can get the information from libinput, but I see no way to remap the buttons.

Here is the content of the .xsessionrc file to reprogram them via xinput (which works under Xorg, but of course not under Wayland):

kensingtonMouseID=$(xinput | grep "Kensington Expert Wireless TB.*slave  pointer" | sed 's/^.*id=\([0-9]*\)[ \t].*$/\1/')
xinput set-button-map $kensingtonMouseID 1 8 2 4 5 6 7 3 9 10 11 12 13

The first line just finds the ID of the mouse. The second remaps the buttons.

So I can find the device and get the events with libinput, but I see nothing allowing me to remap the buttons.

Is there different tool to use (being Kensington does not make a driver for Linux)?

New contributor
JMorgan is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

0

Your Answer

JMorgan is a new contributor. Be nice, and check out our Code of Conduct.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.