xmonad-contrib-0.11.2: Third party extensions for xmonad

Portabilityunportable
Stabilityunstable
Maintainerpastorelli.mario@gmail.com
Safe HaskellNone

XMonad.Actions.ShowText

Contents

Description

ShowText displays text for sometime on the screen similar to XMonad.Util.Dzen which offers more features (currently)

Synopsis

Usage

You can use this module with the following in your ~/.xmonad/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 defaultSTConfig 1 "->" >> nextWS)

handleTimerEvent :: Event -> X AllSource

Handles timer events that notify when a window should be removed

flashTextSource

Arguments

:: 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

Constructors

STC 

Fields

st_font :: String

Font name

st_bg :: String

Background color

st_fg :: String

Foreground color