Map caps lock key to control

setxkbmap -option ctrl:nocaps

I also set:

setxkbmap -option shift:both_capslock

To trigger the caps lock, if I do need it. I have both in a script that runs on startup.

1 Like