I can not stand the Caps Lock key. I tend to press the Caps Lock key when I intend to press the shift key. Thankfully there is an easy to remap this key in Gnome 3. This can also be used in KDE with slight modifications.
First, remap the Caps Lock key using xmodmap:
$ xmodmap -e "keycode 66 = Shift_L NoSymbol Shift_L"
Next export your current key mapping to .xmodmap
$ xmodmap -pke > .xmodmap
That is it. If you need to revert the Caps_Lock key back you can run the following command.
$ xmodmap -e "keycode 66 = Cap_Lock NoSymbol Caps_Lock"
No comments:
Post a Comment