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 ; Firef
xmonad.hs
The common way is to use startupHook which takes X () action and performs it on each startup. E.g.
X ()
main = xmonad $ defaultConfig { startupHook = do spawnOn "workspace1" "program1" … spawnOn "workspaceN" "programN" }