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

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

2 Answers 2

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.