NetBSD Wiki/tutorials/x11/
how to swap cap lock with escape
Esc <-> Caps
The original Unix terminals (or at least the one vi(1) written on) had the esc key somewhere around the tab on PC keyboards. This makes sense if you think about vi's commands.
Well, we need tab, but most of us don't use the caps key, so we can just swap them right away.
You can add the following to your ~/.xinitrc
file, or run as a command:
setxkbmap -option "caps:swapescape"
Add a comment