#StackBounty: #touchpad #xmodmap #xinput Swap touchpad buttons independently of the touchpad

Bounty: 100

I use a Lenovo X250 with Debian. I have a touchpad with 3 physical buttons on top. Using xev I can see that these correspond to buttons 1, 2, and 3. Additionally, the touchpad itself can be pressed. Pressing it with one finger generates a button 1 event, pressing it with two fingers generates an event for button 3.

I would like to swap buttons 1 and 3 since I am left handed. This can be done by calling:

 xmodmap -e "pointer = 1 2 3"

This has the desired effect for the physical buttons on top, however, it unfortunately also swaps the events generated by the touchpad click. So, now a one fingered click generates an event for button 3 and a two fingered click generates an event for button 1.

Is there anyway to swap the physical buttons but leave the touchpad click intact?


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.