Use setxkbmap
to remap the key (does not require a daemon and is independant of your desktop environment or window manager). Don't forget to add the command before the exec gnome-session
(or similar) line in your ~/.xinitrc
or ~/.xsession
.
setxkbmap -option caps:escape
setxkbmap
can be found in extra/xorg-setxkbmap
.