Swap Mouse Buttons on startup

Posted by andy boot on Ask Ubuntu See other posts from Ask Ubuntu or by andy boot
Published on 2012-03-26T22:23:13Z Indexed on 2012/03/26 23:39 UTC
Read the original article Hit count: 228

Filed under:
|

This one bugs me.

I fashioned this handy script to swap the left and right mouse buttons over: [My mouse is a Razer]

/usr/bin/xinput set-button-map `xinput list | grep 'Razer' | grep -o \=[0-9]* | grep -o [0-9]*$` 3 2 1 4 5 6 7 8 1 10 11 12 13

When I run this in a Terminal it works.

When I go to Startup Application Preferences -> Add and then literally paste the above into the command field as an 'Additional startup program' It does not run on startup.

Why not?

I'm using Ubuntu 11-10 but this also applied to the 10-10

© Ask Ubuntu or respective owner

Related posts about mouse

Related posts about startup