Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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 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.

share|improve this question
import XMonad

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

And then press mod+q. Thats all.

copied shamelessly from

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

Your Answer

 
discard

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.