I would like to enable "sticky modifier keys" under archlinux + awesome, and I haven't found the correct info.
I've got it. There is a utility called xbkeys for setting accessibiltiy options for xorg.
From xbkey manual:
I ran this:
That command can go in .xinitrc
You can use Xmodmap to set a key lock for the Scroll, Kana, Num, Caps, and Shift keys. Also some ISO groupings keys can be remapped this way. For example, on my keyboard, to set Left Shift as a toggle, use this:
xmodmap -e "keycode 50 = Shift_Lock"
use "xev" to get the correct keycode.
Just add the command inside the quotes to a file named .Xmodmap and restart X to have the changes permanent.
Unfortunately, I don't think there is a keycode to Lock the Control, Alt, or Meta keys. If you post a more specific question and add a decent bounty, I may be able to work out a shell script and/or xorg change to make this possible.
As far as I know, Xorg doesn't support this. It's not inconceivable for a custom keyboard driver to implement this, but I have never come across such a thing.