From 2c20a30fcdf9ec8a6d329b04a20662558be52081 Mon Sep 17 00:00:00 2001 From: Lukas Mai Date: Tue, 6 Nov 2007 15:18:29 +0100 Subject: make Setup haddock work again darcs-hash:20071106141829-462cf-c1daa2d74d17a314c7b1f68f9952e8502e44628f.gz --- XMonad/Util/Dzen.hs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'XMonad/Util/Dzen.hs') 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 -- cgit v1.2.3