Describe arguments for X.A.ShowText.flashText

This commit is contained in:
Adam Vogt
2012-12-26 01:37:25 +00:00
parent 9e0eb7f770
commit 42443e3df2

View File

@@ -53,7 +53,7 @@ import qualified XMonad.Util.ExtensibleState as ES
-- > ((modMask, xK_Right), flashText defaultSTConfig 1 "->" >> nextWS)
--
-- ShowText contains the map with timers as keys and created windows as values
-- | ShowText contains the map with timers as keys and created windows as values
newtype ShowText = ShowText (Map Atom Window)
deriving (Read,Show,Typeable)
@@ -87,7 +87,10 @@ handleTimerEvent (ClientMessageEvent _ _ _ dis _ mtyp d) = do
handleTimerEvent _ = return ()
-- | Shows a window in the center of the screen with the given text
flashText :: ShowTextConfig -> Rational -> String -> X ()
flashText :: ShowTextConfig
-> Rational -- ^ number of seconds
-> String -- ^ text to display
-> X ()
flashText c i s = do
f <- initXMF (st_font c)
d <- asks display