I'd like to be able to send middle mouse clicks from a keyboard key, for example, the right control key (keycode 105
on my keyboard).
I can remap it using xmodmap
like so:
xmodmap -e "keycode 105 = Pointer_Button2"
But it only seems to work if I have mousekeys
enabled, by running one of the following:
- Shift-Numlock
dconf write /org/gnome/desktop/a11y/keyboard/mousekeys-enable true
xkbset m && xkbset exp =m
This remaps the numeric keypad to control the cursor.
Is there some way I can get X to accept mouse events from keyboard keys without converting the numpad to a cursor control?