mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 11:30:22 -07:00
Merge pull request #667 from geekosaur/664-spawnonce-documentation
document need for `manageSpawn` in `SpawnOnce`
This commit is contained in:
commit
4d387bbfc9
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user