Ubuntu – Swapping the double and triple finger tap actions on trackpad

mousemouse scrollmulti-touchtouchpadtrackpad

I am looking for a way to swap the 'tap' action when using two and three fingers. At the moment, as standard, double-finger-tapping right clicks, and tripple-finger-tapping middle clicks … I would like to switch these two actions, while retaining the two-finger scrolling.

This makes sense to me because I use middle click a lot, and also middle clicking with two fingers correlates with scrolling with two fingers (on a traditional mouse, scrolling is done with the middle wheel).

Best Answer

To fix the middle click you can use the following command:

xinput set-int-prop NN 266 8 2 3 0 0 1 2 3

Where NN is the id of the mousepad device, you can see it with the command xinput list. 266 is the id of the property "Synaptics Tap Action" you can see it with xinput list-props NN

You have to run this command every time you boot/login/wake.

To make it permanent you can put this command to the end of your .profile file in your home folder. (You can also try to put it in /etc/init.d/rc.local, but in my case it didn't work.)