I am trying to set up auto start of my main applications.
Following xmonad spawn on startup in different workspace I have added the following to my startupHook
startup :: X ()
startup = do
setWMName "LG3D"
spawnOn "workspace1" "urxvt"
spawnOn "workspace2" "emacs"
spawnOn "workspace3" "chromium"
but there are three problems:
- I am duplicating the definition of my terminal. It seems like I should be using
shellPromptOn
but it takes an extra parameter and I don't know where to get it from. - this is putting everything on my current workspace. How can I find out what my workspaces are called? I don't believe I've customised the names, you can see my .xmonad/xmonad.hs on github to confirm
- this will start the apps again on a
xmonad --restart
. How can we guard against that? It is very useful to be able to restart xmonad without quitting and I don't want to lose that ability.