xmonad-contrib-0.17.0: Community-maintained extensions extensions for xmonad
Copyright(c) Spencer Janssen 2009
LicenseBSD3-style (see LICENSE)
Maintainerspencerjanssen@gmail.com
Stabilityunstable
Portabilitynot portable
Safe HaskellNone
LanguageHaskell2010

XMonad.Util.SpawnOnce

Description

A module for spawning a command once, and only once. Useful to start status bars and make session settings inside startupHook.

Synopsis

Documentation

spawnOnce :: String -> X () Source #

The first time spawnOnce is executed on a particular command, that command is executed. Subsequent invocations for a command do nothing.

spawnOnOnce :: WorkspaceId -> String -> X () Source #

Like spawnOnce but launches the application on the given workspace.

spawnNOnOnce :: Int -> WorkspaceId -> String -> X () Source #

Lanch the given application n times on the specified workspace. Subsequent attempts to spawn this application will be ignored.

spawnAndDoOnce :: ManageHook -> String -> X () Source #

Spawn the application once and apply the manage hook. Subsequent attempts to spawn this application will be ignored.