Linux: X11 Mouse Button Numbering
X11 Mouse Button Numbering
In Linux X11, each mouse button is assigned a number.
Here's the numbering:
- 1 = left button
- 2 = middle button (pressing the scroll wheel)
- 3 = right button
- 4 = turn scroll wheel up
- 5 = turn scroll wheel down
- 6 = push scroll wheel left
- 7 = push scroll wheel right
- 8 = 4th button (aka browser backward button)
- 9 = 5th button (aka browser forward button)
〔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.
xev outputTo exit xev, just close its window.