Swap keyboard keys
In Linux systems this can be done with xmodmap.
Save this in a text file in the home folder
! Swap caps lock and escape remove Lock = Caps_Lock keysym Escape = Caps_Lock keysym Caps_Lock = Escape add Lock = Caps_Lock Save this file with a name like .capstoescswitc
Then execute this file via the terminal.
xmodmap ~/.capstoescswitc If want to reveres it simply switch the key variables in the script file.