xmobar

Portabilityunportable
Stabilityunstable
MaintainerJose A. Ortega Ruiz <jao@gnu.org>
Safe HaskellNone

Commands

Description

The Exec class and the Command data type.

The Exec class rappresents the executable types, whose constructors may appear in the commands field of the Config data type.

The Command data type is for OS commands to be run by xmobar

Synopsis

Documentation

data Command

Constructors

Com Program Args Alias Rate 

Instances

Eq Command 
Read Command 
Show Command 
Exec Command 

class Show e => Exec e where

Methods

alias :: e -> String

rate :: e -> Int

run :: e -> IO String

start :: e -> (String -> IO ()) -> IO ()

trigger :: e -> (Maybe SignalType -> IO ()) -> IO ()

tenthSeconds :: Int -> IO ()

Work around to the Int max bound: since threadDelay takes an Int, it is not possible to set a thread delay grater than about 45 minutes. With a little recursion we solve the problem.