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?

  • Does xmonad --recompile work?
    – sr_
    Commented May 22, 2012 at 13:20
  • @sr_ Yes, it works.
    – xralf
    Commented May 22, 2012 at 13:21
  • @sr_ This even solved it. Please write it as an answer.
    – xralf
    Commented May 22, 2012 at 13:26

1 Answer 1


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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .