I use xmonad + emacs. Both use ALT key heavily. So there are conflicts sometimes.

My keyboard has WINDOWS key on it. I would like xmonad to use that key instead of ALT.

My current ~/.xmonad/xmonad.hs file looks like this

import XMonad
import XMonad.Config.Gnome

main = xmonad gnomeConfig

How should I change it so that xmonad starts using the WINDOWS key?

e.g. WINDOWS + 3 will switch to workspace 3 instead of ALT+3.

I want xmoand and emacs to live happily together.

import XMonad

main = xmonad defaultConfig
        { modMask = mod4Mask -- Use Super instead of Alt
        -- more changes

And then press mod+q. Thats all.

copied shamelessly from

  • 1
    How would one tweak a Fedora-provided xmonad.hs to accomplish this? – Rhys Ulerich Feb 25 '13 at 16:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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