xmonad-contrib-0.7: Third party extensions for xmonadSource codeContentsIndex
XMonad.Util.Timer
Portabilityunportable
Stabilityunstable
Maintainerandrea.rossato@unibz.it
Contents
Usage
Description
A module for setting up timers
Synopsis
startTimer :: Rational -> X TimerId
handleTimer :: TimerId -> Event -> X (Maybe a) -> X (Maybe a)
type TimerId = Int
Usage
This module can be used to setup a timer to handle deferred events. See XMonad.Layout.ShowWName for an usage example.
startTimer :: Rational -> X TimerIdSource
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
type TimerId = IntSource
Produced by Haddock version 2.3.0