My new mouse (Logitech RX250) supports a new feature - scroll wheel tilt: it feels like clicking if I lean the wheel to the left or to the right. But it does nothing. I would like to set it up to do do something (act like Home/End for example). How to do it?
Here is how to do it:
sudo apt-get install xbindkeys
sudo apt-get install xautomation
create the xbindkeys config file
xbindkeys --defaults > $HOME/.xbindkeysrc
xev, put your mouse in the box and click the button you want to map.
You should get something like
ButtonRelease event, serial 41, synthetic NO, window 0x4400001, root 0x2e9, subw 0x4400002, time 21579213, (28,34), root:(818,86), state 0x110, button 1, same_screen YES
In this case "button 1" is the number of the button we want to map.
Now we need to edit xbindkeys config file.
Scroll to the bottom of the file and create a new line.
If you want to bind 'button 1' to the 'home' key type:
"xte 'keydown Home' 'keyup Home'" b:1
Now make xbindkeys start on startup. Open startup applications. Click 'Add' put xbindkeys in the 'name' field and
/usr/bin/xbindkeys in the 'Command Field'.
Restart the computer.
That will bind 'button 1' to the 'home' key.