X-Windows Ctrl & Caps-Lock Keys

Swap Ctrl Caps-Lock

Go to /etc/X11/xorg.conf and make a back up copy. Open xorg.conf file and find section marked as "InputDevice". Add the following:

Option "XkbOptions" "ctrl:swapcaps"

To keep your original Ctrl key as a second Ctrl and lose Caps-Lock, add the following:

Option "XkbOptions" "ctrl;nocaps"

Thats it.