5

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?

6
  • 1
    Are you sure it does nothing? I think the default in Ubuntu is to provide horizontal scrolling.
    – gertvdijk
    Nov 15, 2012 at 22:10
  • I'll check this, @gertvdijk.
    – Ivan
    Nov 19, 2012 at 2:38
  • 2
    Can you try to run 'xev' (trace X events) from a terminal? Then place your mouse cursor on the square in the window that opens, then do the wheel tilt inside the square. Does it produce an event? If so, what's the keycode? With xmodmap (man xmodmap) you should be able to convert the numeric keycode to a symbolic keysym that can be acted on by your window manager.
    – arielf
    Nov 20, 2012 at 5:50
  • 1
    Check this thread out. Its not the exact same mouse but it has a tilt wheel.
    – Seth
    Nov 21, 2012 at 2:04
  • All of you are right, guys. 1. it does horizontal scrolling by default. 2. xev helps to find out that tilt clicks work as buttins #6 and #7 (for left and right tilt respectively). 3. the article linked answers the question of how to customize the behaviour. So, somebody, submit this information as an answer and get the bounty. Thanks.
    – Ivan
    Nov 21, 2012 at 21:25

1 Answer 1

6
+50

Here is how to do it:

Install xbindkeys: sudo apt-get install xbindkeys
Install xte: sudo apt-get install xautomation

create the xbindkeys config file xbindkeys --defaults > $HOME/.xbindkeysrc

now run 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.
gedit $HOME/.xbindkeysrc
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

enter image description here

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'.

enter image description here

Restart the computer.

That will bind 'button 1' to the 'home' key.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .