Gnome 3 Bind Mouse Keys to Alt Tab and Overview

If you have switched to Gnome Shell or Gnome 3 then you are no doubt making a lot of use of the overview and alt tab functionality to switch between your windows.

To make this easier (if you have a mouse with extra buttons) you can map your extra buttons to do these actions with a few simple tools.

Firstly you need to install xbindkeys and xdotool

sudo apt-get install xbindkeys xdotool

If you need to know your mouse buttons, try running this command:

xev | grep button

This will give you a window you can click on with your mouse and it will tell you which button you clicked.

Then finally you need to edit your xbindkeys configuration. This is my xbindkeys config:


#gnome shell button 8 to alt tab
"xdotool keydown alt key Tab; sleep 2; xdotool keyup alt"
release + b:8

#gnome shell button 9 to overview
"xdotool key Super_L"
release + b:9


Tags: tabgnomebindmousebuttonconfiggnome shellxbindkeysxdotoolaltoverview