Howto: Swap Caps Lock and Escape Keys on Arch Linux

Howto: Swap Caps Lock and Escape Keys on Arch Linux

You can swap the caps lock and escape keys in Arch Linux with the following command.

setxkbmap -option caps:escape

After executing that command, you will then use the escape key to toggle the caps lock and the caps lock key to send an escape.