Configure mouse buttons

Chris Green cl at isbd.net
Thu Mar 7 18:03:47 UTC 2013


On Thu, Mar 07, 2013 at 02:15:55PM -0300, Doritos wrote:
> How do I configure multiple mouse buttons?
> 
> I have a mouse with 5 buttons (3 normal +2 side buttons)
> 
> I want that the side buttons act as normal buttons 1 and 2.
> So I can use both face and side buttons to normal click and right click.
> 
> How can I do that?
> 
You use xmodmap, with a file in your home directory called .Xmodmap

My .Xmodmap swaps buttons 8 and 2 :-

    pointer = 1 8 3 4 5 6 7 2 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32

The program xmodmap also allows you to remap the keyboard.

-- 
Chris Green




More information about the ubuntu-users mailing list