til/system/remapping-capslock-to-ctrl.md
2021-07-19 19:09:37 +03:00

987 B

Story: I know I'm suffering this from so much. Everytime I install a new system, I'm fooled by the application I'm using whenever I try to do something with 'Ctrl'. My left Ctrl is broken so I remapped my Caps Lock to Ctrl. It was one of the best things I have done ever! I would remap it even if I have a fully functioning Ctrl key now.

Here is how it should be done:

If you want to remap it for X server, add the following line to your ~/.xsession or ~/.xinitrc. Make sure to add it before exec whatever_window_manager you are using:

setxkbmap -option 'caps:ctrl_modifier'

source

And for console:

  • tried the following but it didn't work. Needs investigating. Arch Wiki SO