Map caps-lock key to middle mouse click

Posted by Stefano Palazzo on Ask Ubuntu See other posts from Ask Ubuntu or by Stefano Palazzo
Published on 2010-12-14T07:04:35Z Indexed on 2012/10/12 3:49 UTC
Read the original article Hit count: 228

Since I rarely use caps-lock, I'd like to map the key to a middle mouse click instead. I would also like to map Alt+Caps Lock to the original function of the caps lock key, should I ever need it.

I can map any keyboard shortcut to xdotool click 2, but the Gnome Keyboard Shortcuts dialog won't let me assign a command to the caps-lock key, even with modifiers.

I know this is a bit of a strange undertaking; How would I go about doing it?

© Ask Ubuntu or respective owner

Related posts about xorg

Related posts about keyboard