xmonad-contrib-0.16.999: Community-maintained extensions extensions for xmonad
Copyright(c) Mario Pastorelli (2012)
LicenseBSD-style (see xmonad/LICENSE)
Maintainerpastorelli.mario@gmail.com
Stabilityunstable
Portabilityunportable
Safe HaskellNone
LanguageHaskell98

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 def 1 "->" >> nextWS)

def :: Default a => a #

The default value for this type.

handleTimerEvent :: Event -> X All Source #

Handles timer events that notify when a window should be removed

flashText Source #

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

Instances

Instances details
Default ShowTextConfig Source # 
Instance details

Defined in XMonad.Actions.ShowText

Methods

def :: ShowTextConfig #