mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-01 04:31:52 -07:00
X.U.SpawnOnce: Document need for manageSpawn
Also, reexport `manageSpawn` for convenience.
This commit is contained in:
committed by
slotThe
parent
adeb27dc69
commit
125c945cc9
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user