This one's for my left-handed comrades.
I use Ubuntu on my laptop and find it annoying that Ubuntu does not offer an independent configuration for mouse buttons on the external mouse. I would like to keep the mousepad buttons right-handed while the external mouse left-handed with the primary and secondary buttons swapped.
The following command switches the left and right buttons on an external mouse connected to a laptop.
Code:
xmodmap -e "pointer = 3 2 1"
To restore the setting:
Code:
xmodmap -e "pointer = default"
xmodmap is capable of modifying several button mappings. check it out.
Bookmarks