Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 just switched to awesomewm. I am however wondering how can I:

  1. Make left Alt be Mod4 too (so both LAlt and Meta are Mod4)
  2. Make CapsLock become Escape


share|improve this question

In order to map Caps Lock to Escape you can add the following to your .xinitrc:

setxkbmap -option caps:escape &

I couldn't manage to map Alt though.

share|improve this answer

To add to Julian's answer, you can remap Alt use xmodmap:

xmodmap -e "remove mod1 = Alt_L" -e "add mod4 = Alt_L"

This can go in your .xinitrc along with the call to setxkbmap.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.