From Ubuntu How-To (thad hopkins):
Note: This works for a Microsoft IntelliMouse Explorer 3.0A mouse, and may or may not work for other similar 7-button mice. I don't really know how this works; it's the result of hours of mucking around with stuff. As always, backup your files before editing.
The following will configure the IntelliMouse to work with Gnome, Nautilus, Firefox, Epiphany, etc, with full support for the back and forward side buttons and scrolling with the wheel.
Install imwheel
Code:
sudo aptitude install imwheel
Edit xorg.conf:
Code:
sudo gedit /etc/X11/xorg.conf
Replace the mouse section with the following:
Code:
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ExplorerPS/2"
Option "Buttons" "7"
Option "ButtonMapping" "1 2 3 6 7"
Option "Emulate3Buttons" "false"
EndSection
Create .imwheelrc:
Code:
sudo gedit .imwheelrc
Paste in the following:
Code:
".*"
None, Up, Alt_L|Left
None, Down, Alt_L|Right
"(null)"
None, Up, Alt_L|Left
None, Down, Alt_L|Right
Make imwheel start with X by editing the startup file:
Code:
sudo gedit /etc/X11/imwheel/startup.conf
Find this line and change the 0 to a 1:
Add one final file"
Code:
sudo gedit /etc/X11/Xsession.d/63xmodmap
Paste in this code:
Code:
killall imwheel
xmodmap -e "pointer = 1 2 3 4 5 6 7"
BINARY=$(which imwheel)
$BINARY -k -p -b "6 7"
Make the file executable by all:
Code:
sudo chmod 777 /etc/X11/Xsession.d/63xmodmap
Restart X (CTRL + ALT + BACKSPACE), and you're done!
Bookmarks