I am using Ubuntu 22.04 on a Lenovo ThinkPad P16 Gen 1.
At the bottom of my touchpad are left, middle and right click buttons. I am often accidentally pasting things by clicking the bottom middle of the pad. To avoid this, I can change the middle-click button to a left-click by:
xinput set-button-map 12 1 1 3 4 5 6 7
But when I restart my machine this resets and so I have to do this again each time - and as I understand it, the xinput for my touchpad won't be 12
every time (as it is in this example).
How can I make this change permanent or automate this mapping change each time I boot?
~/.config/autostart/
directory. – waltinator Jan 02 '24 at 16:46