Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I tried to change the mod key in awesome from the windows key to either Pause, Scroll Lock, and Escape.

For all keys I tried to change the entry in the rc.lua configuration file; I tried to use xmodmap to clear locks and add mod4 = ...

However it seems that no matter what I do the keys get "sticky" (sometimes in a weird inconsistent way), namely if I hit them once the computer acts as though they are constantly pressed.

Is there a reasonable way to change this behavior?

share|improve this question

I have a file with these two lines in my home:

clear lock 
keysym Caps_Lock = Super_L

It gets called from my rc.lua like this:

awful.util.spawn("xmodmap /home/username/your_xmodmap.file")
share|improve this answer
I don't want to use capslock as the modkey. the clear lock command clears shift lock, and there shouldn't be any shift lock for either keys mentioned in the first line of my question. – Archie Nov 9 '12 at 7:43

I know I am 3 years late, but if this helps anyone, switch

modkey = "Mod4"


modkey = "Mod1"


share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .