---

How To Bind Mouse Buttons To Keyboard Keys Or Commands (Linux Using X11)

If you have a mouse with extra buttons, you can bind those buttons to perform a key combination, run a program, command or script. This will only work if you use X11 (it does not work on Wayland) because the tools we’ll use for this only support X11.