Originally Posted by MTK358
I don't understand.
My fault, what I meant is:
First of all, you need to find the Caps Lock & the Esc key's map. You could find it in x (my suggestion was you know how to do this), or if you can't, type showkey followed by pressing the Caps Lock & the Esc buton, or you can type showkey -h or man showkey as well for some guidance. Now, to set the keymap temporarily, I found out that the keycode app suites the purpose, so you can type:
keycode ""esc key code's map No."" = Caps_Lock
keycode ""esc key code's map No."" = "The Escape button"
Be sure to change them codes back after usage. Now, for a permanent change, there is this loadkeys made into rc.local thing I mentioned, but I don't understand it yet.