Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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 installed X Window System (xinit) and xmonad only, without installing a desktop environment.

The problem is that the configuration file ~/.xmonad/xmonad.hs does not apply after starting.

I usually execute the startx command after logging in and then xmonad is already running and ignores my xmonad.hs. I changed the permissions to 777 for all files under the ~/.xmonad directory.

How would you fix this?

share|improve this question
Does xmonad --recompile work? – sr_ May 22 '12 at 13:20
@sr_ Yes, it works. – xralf May 22 '12 at 13:21
@sr_ This even solved it. Please write it as an answer. – xralf May 22 '12 at 13:26
up vote 4 down vote accepted

Try xmonad --recompile.

While I cannot answer why it doesn't automatically recompile if .xmonad/xmonad.hs is changed (I think it should and once did), it might help, especially with finding errors in the configuration without restarting the session.

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.