Linux Detect Mouse Button Numbers Easily
Jun 12, 2012 · 1 minute readCategory: linux
If you need to know what number a mouse button is (for example if you are configuring compiz) in Linux then you might like this little trick.
xev | grep button
Run the above in a terminal and it will display a white box. As you click on it, the button number will appear in your terminal.
The pipe to grep is to filter out the large amount of noise from xev and only display the button number notifications.