How to deactivate the Caps Lock key on X.org/XFree?
To deactivate the irksome Caps Lock key on X.org, XFree and presumably other X11 servers, the xmodmap utility is used to remove the Caps_Lock keysym from the lock modifier class: xmodmap -e “remove lock = Caps_Lock” The xmodmap utility unbinds the Caps Lock key from the lock modifier class temporarily, thus it needs to be executed every time you restart your X session. To save the changes permanently as the global default, append the xmodmap expression to your global Xmodmap file (usually /etc/X11/Xmodmap). To save them only for your own user, append the expression to your ~/.xmodmaprc file.