Linux: X11 Mouse Button Numbering

By Xah Lee. Date: . Last updated: .

X11 Mouse Button Numbering

In Linux X11, each mouse button is assigned a number.

Here's the numbering:

[see Linux: Swap Mouse Buttons]

How to find the X11 mouse button number?

type xev in terminal, then click the button to see its number.

linux x11 xev output 2015 11 08
xev output

To exit xev, just close its window.