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.