Other Help Topics :: Switching Mouse Buttons



I'm trying to figure out how to switch the mouse buttons.  I've tried using mouseconfig and there's no option given. How do I switch the buttons?
To switch mouse button depends on the mouse. First issue the command:

xmodmap -pp

This will display either 3 or 5 pointer buttons, e.g.,

There are 3 pointer buttons defined.

   Physical        Button
    Button          Code
       1              1
       2              2
       3              3

Now depending on the answer for your particular device, if you have 3 button code mouse then issue the following command

xmodmap -e 'pointer = 3 2 1'

For 5 button version use:

xmodmap -e 'pointer = 3 2 1 4 5'

Your the man! Even my scroll button is now working!!!! Woohoo!
Thanks so much!


original here.