[xmonad] Avoiding multiple status bar processes after XMonad restart

Jacek Generowicz jacek.generowicz at cern.ch
Sun Jan 15 00:00:26 CET 2012

Brandon Allbery wrote:

>     , startupHook = do args <- getArgs
>                       guard (null args) $ spawn "xmobar"

Can you point me to some documentation or examples for this? I have
found hundreds which follow the pattern

    main = do xmobarPipe <- spawnPipe "xmobar"
              xmonad myConfig
                { ...
                , logHook = ... xmobarPipe ...

but I don't recall seeing your suggestion before, and yet your
suggestion smells much better.

More information about the xmonad mailing list