Switching Mouse Buttons


Forum: Other Help Topics
Topic: Switching Mouse Buttons
started by: geejspot

Posted by geejspot on Dec. 17 2006,03:51
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?
Posted by roberts on Dec. 17 2006,04:08
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'

Posted by geejspot on Dec. 17 2006,04:39
Your the man! Even my scroll button is now working!!!! Woohoo!
Thanks so much!

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.