All pastes #1300510 Raw Edit

Logitech Mouse tilt wheel back/f

public text v1 · immutable
#1300510 ·published 2009-01-05 23:28 UTC
rendered paste body
Side buttons and Nautilus, Epiphany, Konqueror, etc (Optional)

We can use "xvkbd" and "xbindkeys" to bind the side mouse buttons to "ALT + LEFT" and "ALT + RIGHT" so they work as forward and backwards in Nautilus.


1. xvkbd and xbindkeys

Lets install "xvkbd" and "xbindkeys":

Code:

sudo apt-get install xvkbd xbindkeys

Next we need to create the configuration for them:

Code:

gedit ~/.xbindkeysrc

Now paste the following (for MX500, MX510, MX518, MX700):

Code:

"/usr/bin/xvkbd -xsendevent -text "\[Alt_L]\[Left]""
  m:0x0 + b:6
"/usr/bin/xvkbd -xsendevent -text "\[Alt_L]\[Right]""
  m:0x0 + b:7

For mice with a tilt wheel (such as the MX1000), you would most likely change b:6 to b:8 and b:7 to b:9.

Make sure you keep the quote marks, save the file and run "xbindkeys" in the terminal. It runs as a daemon in the background. You should now be able to test if it works in Nautilus by using the side buttons it also works in Epiphany if you use it.

Note: Same as before, if you have different mouse buttons use xev to find out what number they are and change the "b:6" and "b:7" in the above to the correct numbers.


3. Adding it to your session

Now it's working open up the gnome sessions settings "System > Preferences > Sessions" click on the "Startup Programs" tab, click "Add" and enter "xbindkeys". This makes sure it's run each time you log in, you should probably test it by logging out and back in now.