| View previous topic :: View next topic |
| Author |
Message |
StevePER n00b

Joined: 28 Jan 2004 Posts: 34 Location: Perth, Australia
|
Posted: Sat Apr 28, 2012 12:12 pm Post subject: Remapping mouse buttons on startup |
|
|
I would like to remap the thumb button on my mouse to do the same thing as the middle button. I can do this using xinput:
| Code: | | xinput set-button-map "Microsoft Microsoft Optical Mouse with Tilt Wheel" 1 2 3 4 5 6 7 8 2 |
What is the correct way to get this to run automatically when I start X? In the old days I would have added this to .xinitrc. I see there are scripts in /etc/X11/xinit/xinitrc.d, but those aren't getting run. |
|
| Back to top |
|
 |
BillWho Veteran


Joined: 03 Mar 2012 Posts: 1576 Location: US
|
Posted: Sat Apr 28, 2012 12:59 pm Post subject: |
|
|
StevePER,
Depending on your DM there should be a directory under ~/.config where you can have an autostart file.
For example I'm using LXDE and under ~/.config/lxsession/LXDE I create an autostart file to run another script and set the mouse acceleration
| Code: | bill@gentoo-gateway ~/.config/lxsession/LXDE $ ls
autostart desktop.conf
bill@gentoo-gateway ~/.config/lxsession/LXDE $ cat autostart
~/script/startmon.sh
@xset m 5 2
|
Check your DM setup page for where and how you should setup the file
Good luck  _________________ Good luck
Since installing gentoo, my life has become one long emerge  |
|
| Back to top |
|
 |
StevePER n00b

Joined: 28 Jan 2004 Posts: 34 Location: Perth, Australia
|
Posted: Sat Apr 28, 2012 1:16 pm Post subject: |
|
|
| Thankyou. I couldn't work out where the autostart file should go, but I did find the settings under System -> Preferences -> Startup Applications. |
|
| Back to top |
|
 |
|