Copyright | (c) Mario Pastorelli (2012) |
---|---|
License | BSD-style (see xmonad/LICENSE) |
Maintainer | pastorelli.mario@gmail.com |
Stability | unstable |
Portability | unportable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
ShowText displays text for sometime on the screen similar to XMonad.Util.Dzen which offers more features (currently)
Usage
You can use this module with the following in your xmonad.hs
:
import XMonad.Actions.ShowText
Then add the event hook handler:
xmonad { handleEventHook = myHandleEventHooks <> handleTimerEvent }
You can then use flashText in your keybindings:
((modMask, xK_Right), flashText def 1 "->" >> nextWS)
handleTimerEvent :: Event -> X All Source #
Handles timer events that notify when a window should be removed
:: ShowTextConfig | |
-> Rational | number of seconds |
-> String | text to display |
-> X () |
Shows a window in the center of the screen with the given text
data ShowTextConfig Source #
Instances
Default ShowTextConfig Source # | |
Defined in XMonad.Actions.ShowText def :: ShowTextConfig # |