I have an MS Intellimouse and I do it llike this:
1. /etc/X11/xorg.conf:
Code:
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/input/mice"
Option "Buttons" "7"
Option "ZAxisMapping" "6 7"
Option "Emulate3Buttons" "yes"
EndSection
a small script:
2. /etc/X11/xinit/xinitrc.d/mouse.sh:
Code:
#!/bin/bash
# /etc/X11/xinit/xinitrc.d/mouse.sh
# Required for the configuration of a 5-button mouse
xmodmap -e "pointer = 1 2 3 6 7 4 5"
3. and finally as root run:
Code:
chmod +x /etc/X11/xinit/xinitrc.d/mouse.sh
With this config I can have the sidebuttons configured as backward & forward, the scroll weel to scroll up & down in a document and clickweel as paste!