I have the following
startupHook in my
, startupHook = spawn "~/.xmonad/autostart"
I am starting many apps and daemons in this script and it is written to run only once on startup. But this is being run everytime I hit
Mod-q, i.e., to reload and test out my changes to
I could conditionally run the programs in the autostart script but that turned out to be quite flaky. So, I was wondering if there is a way to xmonad to run this startup hook only on the initial startup and not on reloads.
I tried googling around but came up empty. Is such a thing possible?
Edit: I am running xmonad 0.11 installed from cabal on ubuntu 12.04.