aboutsummaryrefslogtreecommitdiffstats
path: root/XMonad/Util/Dzen.hs
diff options
context:
space:
mode:
authorLukas Mai <l.mai@web.de>2007-11-06 15:18:29 +0100
committerLukas Mai <l.mai@web.de>2007-11-06 15:18:29 +0100
commit2c20a30fcdf9ec8a6d329b04a20662558be52081 (patch)
tree20af79d4247109be5c13de058b142440aae7c633 /XMonad/Util/Dzen.hs
parentd65b61905a6fca67c5b1bc045acd0d791f4e58d0 (diff)
downloadXMonadContrib-2c20a30fcdf9ec8a6d329b04a20662558be52081.tar.gz
XMonadContrib-2c20a30fcdf9ec8a6d329b04a20662558be52081.tar.xz
XMonadContrib-2c20a30fcdf9ec8a6d329b04a20662558be52081.zip
make Setup haddock work again
darcs-hash:20071106141829-462cf-c1daa2d74d17a314c7b1f68f9952e8502e44628f.gz
Diffstat (limited to 'XMonad/Util/Dzen.hs')
-rw-r--r--XMonad/Util/Dzen.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/XMonad/Util/Dzen.hs b/XMonad/Util/Dzen.hs
index 02fce05..fa7c54c 100644
--- a/XMonad/Util/Dzen.hs
+++ b/XMonad/Util/Dzen.hs
@@ -29,12 +29,14 @@ import XMonad.Util.Run (runProcessWithInputAndWait, seconds)
-- | @dzen str timeout@ pipes @str@ to dzen2 for @timeout@ microseconds.
-- Example usage:
+--
-- > dzen "Hi, mom!" (5 `seconds`)
dzen :: String -> Int -> X ()
dzen str timeout = dzenWithArgs str [] timeout
-- | @dzen str args timeout@ pipes @str@ to dzen2 for @timeout@ seconds, passing @args@ to dzen.
-- Example usage:
+--
-- > dzenWithArgs "Hi, dons!" ["-ta", "r"] (5 `seconds`)
dzenWithArgs :: String -> [String] -> Int -> X ()
dzenWithArgs str args timeout = io $ runProcessWithInputAndWait "dzen2" args (unchomp str) timeout
@@ -52,12 +54,14 @@ dzenScreen sc str timeout = dzenWithArgs str ["-xs", screen] timeout
-- | Flashes when a window requests your attention and you can't see it. For use with
-- XMonadContrib.UrgencyHook. Usage:
+--
-- > urgencyHook = dzenUrgencyHook (5 `seconds`)
dzenUrgencyHook :: Int -> Window -> X ()
dzenUrgencyHook = dzenUrgencyHookWithArgs []
-- | Flashes when a window requests your attention and you can't see it. For use with
-- XMonadContrib.UrgencyHook. Usage:
+--
-- > urgencyHook = dzenUrgencyHookWithArgs ["-bg", "darkgreen"] (5 `seconds`)
dzenUrgencyHookWithArgs :: [String] -> Int -> Window -> X ()
dzenUrgencyHookWithArgs args duration w = do