I'm trying to get rid of the Caps Lockkey and give it a better use. Since I constantly use the run
command Alt+F2, I'd like to make Caps Lock trigger that action.
I've found a couple of questions related, using xmodmap
, but none of them try to map Caps Lock to a combination of keys such as Alt+F2
How would I go about doing this?
Thanks!
Best Answer
Install Xdotool
and CompizConfig Settings Manager
from Ubuntu Software Center
Disable Caps-Lock by opening Keyboard Preferences
System ▸ Preferences ▸ Keyboard
Goto tab
Layouts
then click the buttonOptions...
Change the key behaviour to CapsLock is disabled
Open CompizConfig Settings Manager
ccsm
Enable Commands plugin then add the following
Add
xdotool key alt+F2
to the first available command slotGoto 'Key Bindings' tab. In the same slot number assign Caps Lock key.
Note: It will show VoidSymbol as the button assigned but this is fine.