How to swap caps lock and control key
Swapping the caps lock
key with Ctrl
key is a good work around for laptop keyboard. So here is some tips.
on Linux
you can use xmodmap to change it (a utility for modifying keymaps and pointer button mappings in X).
here is the simple script.
Actually I remove the caps lock, so if anyone else can also use your keyboard with out any uncomfortable. (anyway I think caps lock is not necessary)
Here I just make the
caps lock
become theright control
you can save this as
xmodchange
file, and usexmodmap xmodchange
to change your key mapremove Lock = Caps_Lock remove Control = Control_R keysym Control_R = Caps_Lock keysym Caps_Lock = Control_R add Lock = Caps_Lock add Control = Control_R~~~~
On windows:
- I change the registry on windows to support this feature. Here is another tutorial