Assuming that you are using
us.iso.kbd keymap, you can remap CAPSLOCK to CTRL by this simple following steps.
First, copy the
Next, modify the permission of
us.iso-swap.kbd to be writable.
us.iso-swap.kbd. Look at the line with number 058 and change “clock” to “lctrl” like this.
1 2 3
After that, change the permission back to read-only
Finally, add this text to
Reboot and now your CAPLOCKS will be CTRL.