I am trying to configure my xmonad.hs
so that when I start my session I start an array of different programs on different workspaces (like Terminal in 1 ; Firefox in 2 ; Pidgin in 3).
I already looked into the XMonad.Actions.SpawnOn
, but as spawnOn
returns with an X ()
and not with a common m ()
I can not use it in main = do ...
.
Is there a function that takes an X
-monad and returns with IO ()
or is there another workaround?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…