Permanent Remap Keys in X11
Because my shift key got broken, I remapped Caps Lock to Shift using xmodmap:
1 2 3
However these settings got sometimes lost. (ex: after the driver was reloaded after suspend). Finally I found event_key_remap patch from here, which allows to permanently redefine keys in the xorg.conf.
To apply the patch under archlinux simply install xf86-input-evdev-remap from AUR:
yaourt -S xf86-input-evdev-remap
To track down the key, you want to remap use
xev on the terminal.
Just type the wanted keys a few times. The output will be something like
1 2 3 4 5
The interesting value here is the
Use this code to build your final xorg.conf.
In my case this was:
1 2 3 4 5 6 7