This small addition adds the nice option to switch Esc and Caps lock: Add this to /etc/conf.d/keymaps # Should Caps lock and Esc be switched? switch_caps_lock_and_esc="yes" Add this to /etc/init.d/keymaps in start() if yesno ${switch_caps_lock_and_esc}; then ebegin "Switching Caps lock and Esc keys" setkeycodes 0x3a 1 setkeycodes 0xba 1 setkeycodes 0x01 58 setkeycodes 0x81 58 eend 0 fi This is _really_ useful if you like Vi as an editor. However I don't know whether this works for non x86/amd64 keyboards. Reproducible: Always Steps to Reproduce:
make your own keymap and select that with the keymaps script