X.U.SpawnOnce: Document need for manageSpawn

Also, reexport `manageSpawn` for convenience.
This commit is contained in:
brandon s allbery kf8nh
2021-12-22 17:30:28 -05:00
committed by slotThe
parent adeb27dc69
commit 125c945cc9

View File

@@ -14,7 +14,13 @@
--
-----------------------------------------------------------------------------
module XMonad.Util.SpawnOnce (spawnOnce, spawnOnOnce, spawnNOnOnce, spawnAndDoOnce) where
module XMonad.Util.SpawnOnce (spawnOnce,
-- * 'SpawnOn' helpers
-- $spawnon
manageSpawn,
spawnOnOnce,
spawnNOnOnce,
spawnAndDoOnce) where
import XMonad
import XMonad.Actions.SpawnOn
@@ -43,7 +49,12 @@ doOnce f s = do
spawnOnce :: String -> X ()
spawnOnce = doOnce spawn
-- | Like spawnOnce but launches the application on the given workspace.
-- $spawnon
-- These functions combine 'spawnOnce' with their relatives in
-- 'XMonad.Actions.SpawnOn'. You must add 'manageSpawn' to your
-- @manageHook@ for them to work, as with @SpawnOn@.
-- | Like 'spawnOnce' but launches the application on the given workspace.
spawnOnOnce :: WorkspaceId -> String -> X ()
spawnOnOnce ws = doOnce (spawnOn ws)