Added scratchpadSpawnActionTerminal to specify the terminal program directly as a String.

This commit is contained in:
Braden Shepherdson
2008-06-08 03:26:19 +00:00
parent 744b8197ee
commit aa9e7ca663

View File

@@ -36,6 +36,7 @@
module XMonad.Util.Scratchpad (
scratchpadSpawnAction
,scratchpadSpawnActionTerminal
,scratchpadManageHookDefault
,scratchpadManageHook
) where
@@ -53,6 +54,11 @@ scratchpadSpawnAction :: XConfig l -- ^ The configuration, to retrieve the termi
scratchpadSpawnAction conf = spawn $ terminal conf ++ " -title scratchpad"
-- | Action to pop up the terminal, with a directly specified terminal.
scratchpadSpawnActionTerminal :: String -- ^ Name of the terminal program
-> X ()
scratchpadSpawnActionTerminal term = spawn $ term ++ " -title scratchpad"
-- | The ManageHook, with the default rectangle:
-- Half the screen wide, a quarter of the screen tall, centered.