xmonad-contrib-0.17.1: Community-maintained extensions for xmonad
Copyright(c) Andrea Rossato and David Roundy 2007
LicenseBSD-style (see xmonad/LICENSE)
Maintainerandrea.rossato@unibz.it
Stabilityunstable
Portabilityunportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

XMonad.Util.Timer

Contents

Description

A module for setting up timers

Synopsis

Usage

This module can be used to setup a timer to handle deferred events. See ShowWName for an usage example.

startTimer :: Rational -> X TimerId Source #

Start a timer, which will send a ClientMessageEvent after some time (in seconds).

handleTimer :: TimerId -> Event -> X (Maybe a) -> X (Maybe a) Source #

Given a TimerId and an Event, run an action when the Event has been sent by the timer specified by the TimerId