How can I configure the mouse thumb button. For example, if I want it to act as a double click.
My mouse is Microsoft Notebook Mouse 5000 Bluetooth (if it matters) and I use Natty.
By installing a couple packages you can configure this pretty easily without too much trouble at all. No matter what version of Linux I'm using i am always sure to install two specific applications when it comes to mouse and keyboard emulation.
*By using these two programs together we can make the keyboard and mouse do just about anything we want them to.
You say you want to use the thumb button in your case for instance, well first we need to find what "mouse button number"
1. Open up a terminal window and type the following command at the prompt
It will open an event handler on your screen that looks like the following:
The xev application, showing keycodes
Hover your mouse over the event window that opened on your screen and click your thumb button. You will see alot of things happening in your terminal window but the one thing that we are concerned with is the "button number" of the one you just clicked. This can be found at the bottom of your terminal window and should look something similar to the following line:
The button part is what were interested in. Being yours is a thumb button its probably gonna say
Now to get things working!!
Assuming you have installed the
2. Open up your favorite text editor and create a new file inside your home directory called
3. Type the following inside the file:
Note: *Be sure to replace
Note: *There should also be no spaces between the first line and the second line. I know it shows that there is in the example but for some reason I couldn't get the space to go away in the example. If you leave the space you will get an error when you run xbindkeys.
Whats were telling
4. Save the file and we should be good to go.
Ok lets test it out!!
5. Open a terminal window and type the following so we can test the functionality:
This will run the
Now if you click on your thumb button on your mouse then you should see some things happening in your terminal, meaning that it's recognizing the button press. You should now be getting the same functionality as you would by double-clicking with the left button of your mouse.
You should be able to test this out by using the thumb button and clicking on the menu bar of the terminal, which should maximize or minimize it, thus doing the same thing as a double click would do with the left mouse button.
Note: In order for this all to work all the time, we need to have xbindkeys running in the background at all times. If you just add a new command
I've tried to explain in the best detail on how to go about doing this, hopefully you have been able to understand and complete this action with success. :)
The official Ubuntu forums have a page on this - and to configure up to 7 mouse buttons you don't need any extra software.
From that page, use the command: