I use i3wm, and to map cap lock to escape, I run:

setxkbmap -option caps:swapescape

This works fine, but sometimes while hitting the F1 key, my pinky can accidentally hit the Escape key, which turns on CapsLock.

Gnome has a very nice way to do this, where Shift + Escape = CapsLock. Hitting Escape on its own will do nothing.

you are viewing a single comment's thread
view the rest of the comments
[–] 1 point 1 year ago

This is not an answer to your question, but your left pinkie will thank you if you map CTRL to CAPS.

  • source