
On Thu, Dec 31, 2015 at 11:35 AM, Adam Sjøgren
I have a startupHook that spawns a number of windows on various workspaces.
When I restart XMonad, I don't want those windows opened again.
Use XMonad.Util.SpawnOnce.spawnOnce. If you want to use SpawnOn as well then you'd need to write your own spawner combining the two. The more general way to do it is: as <- io getArgs when (null as) $ do {- your startup code here -} which takes advantage of the fact that restarts pass --resume as a parameter, followed by the serialized xmonad state. -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net