Skip to content

IMWheel (5 button mouse within Nautilus) : Ubuntu (6.10)

Yesterday I promised I would also include instructions on how to setup IMWheel for support for 5 button mouse within Nautilus file manager. These instructions are a little more detailed and require a touch of customization. In my mind, if you’re brave enough to use an abomination mouse you can easily be brave enough to set this up. It shouldn’t take more than 5 minutes and when you’re done you’ll have all the comforts of your 5 button mouse with GNOME and Nautilus. Let’s get started!

  1. sudo aptitude install imwheel
  2. sudo gedit /etc/X11/imwheel/imwheelrc
  3. Add the following to the bottom of the existing file:
  4. ".*"
    None, Up, Alt_L|Left
    None, Down, Alt_L|Right
    "(null)"
    None, Up, Alt_L|Left
    None, Down, Alt_L|Right

  5. Create an IMWheel startup script: sudo gedit /usr/bin/mouse
  6. #!/bin/sh
    exec xmodmap -e "pointer = 1 2 3 6 7 4 5" &
    exec imwheel -k -b "67" &
    exec $REALSTARTUP

  7. Set this script as executable: sudo chmod +x /usr/bin/mouse

You can optionally set this script up to auto-start at login by adding it to “System > Prefences > Sessions > Startup Programs”. Click “Add” and enter /usr/bin/mouse. Select “OK”.

At this point test IMWheel by restarting GNOME (ctrl-alt-backspace) or restarting the computer. I would love to hear how this works for people as I don’t personally have a 5 button mouse to test this on. If I’ve missed anything please let me know.

If this site has been useful, please consider participating in the Fundraiser.

Other Points of Interest

  • No Related Post