Monday, August 12, 2013

Logitech Perfomance MX Extra Buttons for Ubuntu Gnome

This configures the extra buttons on my Logitech Performance MX to do the following:

  • The "Zoom" button works like "Alt-Tab". Press and hold the "Zoom" button and use the scroll wheel to select a program.
  • The "Overview" button starts the Gnome overview.

First install the necessary software:

sudo apt-get install xautomation
sudo apt-get install xbindkeys
 
 
Create a configuration for xbindkeys
 
gedit ~/.xbindkeysrc 


.xbindkeyrc has to look like this:

# zoom ->; switch applications
# start with zoom key pressed
"xte 'keydown Alt_L'; xte 'key Tab'"
  b:13

# end with zoom key released
"xte 'keyup Alt_L'"
  alt+release+b:13

# left if wheel forward
"xte 'key Left'"
  alt+b:4

# right if wheel back
"xte 'key Right'"
  alt+b:5

# overview
"xte 'keydown Alt_L'; xte 'sleep 1'; xte 'key F1'; xte 'keyup Alt_L'"
  b:10

Test you settings by starting xbindkeys

xbindkeys -p -v


If the buttons work log out and in again. xbindkeys should start automatically in Ubuntu 13.04.

Of course you can add even more actions for the other buttons of the mouse by editing .xbindkeyrc.
Post a Comment