Skip to navigation

Binding a key to the middle mouse button with xmodmap and xkbset

Great, I just found this here. This is how you can bind a key to the middle mouse button (I use the middle mouse button a lot to (a) paste stuff from the clipboard, (b) open links in background tabs in Firefox). I used the pause/break key, so it’s slightly modified. I first had to get xkbset via aptitude.

sudo aptitude install xkbset
xmodmap -e 'keysym Pause Break = Pointer_Button2'
xkbset m
xkbset exp =m

I don’t know yet whether this will persist after a reboot.

Leave a Reply