xmobar-0.35.1: A Minimalistic Text Based Status Bar

Copyright(c) 2011 2012 2013 2014 2015 2017 2018 2019 Jose Antonio Ortega Ruiz
(c) 2007 Andrea Rossato
LicenseBSD-style (see LICENSE)
MaintainerJose A. Ortega Ruiz <jao@gnu.org>
Stabilityunstable
Portabilityunportable
Safe HaskellNone
LanguageHaskell2010

Xmobar

Contents

Description

Public interface of the xmobar library

Synopsis

Documentation

xmobar :: Config -> IO () Source #

defaultConfig :: Config Source #

The default configuration values

tenthSeconds :: Int -> IO () Source #

Sleep for a given amount of tenths of a second.

(Work around 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.)

data Runnable Source #

Constructors

(Exec r, Read r, Show r) => Run r 
Instances
Read Runnable Source # 
Instance details

Defined in Xmobar.Run.Runnable

Methods

readsPrec :: Int -> ReadS Runnable

readList :: ReadS [Runnable]

readPrec :: ReadPrec Runnable

readListPrec :: ReadPrec [Runnable]

Show Runnable Source # 
Instance details

Defined in Xmobar.Run.Runnable

Methods

showsPrec :: Int -> Runnable -> ShowS

show :: Runnable -> String

showList :: [Runnable] -> ShowS

Exec Runnable Source # 
Instance details

Defined in Xmobar.Run.Runnable

Methods

alias :: Runnable -> String Source #

rate :: Runnable -> Int Source #

run :: Runnable -> IO String Source #

start :: Runnable -> (String -> IO ()) -> IO () Source #

trigger :: Runnable -> (Maybe SignalType -> IO ()) -> IO () Source #

class Show e => Exec e where Source #

Minimal complete definition

Nothing

Methods

alias :: e -> String Source #

rate :: e -> Int Source #

run :: e -> IO String Source #

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

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

Instances
Exec Runnable Source # 
Instance details

Defined in Xmobar.Run.Runnable

Methods

alias :: Runnable -> String Source #

rate :: Runnable -> Int Source #

run :: Runnable -> IO String Source #

start :: Runnable -> (String -> IO ()) -> IO () Source #

trigger :: Runnable -> (Maybe SignalType -> IO ()) -> IO () Source #

Exec Command Source # 
Instance details

Defined in Xmobar.Run.Command

Methods

alias :: Command -> String Source #

rate :: Command -> Int Source #

run :: Command -> IO String Source #

start :: Command -> (String -> IO ()) -> IO () Source #

trigger :: Command -> (Maybe SignalType -> IO ()) -> IO () Source #

Exec PipeReader Source # 
Instance details

Defined in Xmobar.Plugins.PipeReader

Methods

alias :: PipeReader -> String Source #

rate :: PipeReader -> Int Source #

run :: PipeReader -> IO String Source #

start :: PipeReader -> (String -> IO ()) -> IO () Source #

trigger :: PipeReader -> (Maybe SignalType -> IO ()) -> IO () Source #

Exec MarqueePipeReader Source # 
Instance details

Defined in Xmobar.Plugins.MarqueePipeReader

Methods

alias :: MarqueePipeReader -> String Source #

rate :: MarqueePipeReader -> Int Source #

run :: MarqueePipeReader -> IO String Source #

start :: MarqueePipeReader -> (String -> IO ()) -> IO () Source #

trigger :: MarqueePipeReader -> (Maybe SignalType -> IO ()) -> IO () Source #

Exec HandleReader Source #

Asynchronously read from the Handle.

Instance details

Defined in Xmobar.Plugins.HandleReader

Methods

alias :: HandleReader -> String Source #

rate :: HandleReader -> Int Source #

run :: HandleReader -> IO String Source #

start :: HandleReader -> (String -> IO ()) -> IO () Source #

trigger :: HandleReader -> (Maybe SignalType -> IO ()) -> IO () Source #

Exec Date Source # 
Instance details

Defined in Xmobar.Plugins.Date

Methods

alias :: Date -> String Source #

rate :: Date -> Int Source #

run :: Date -> IO String Source #

start :: Date -> (String -> IO ()) -> IO () Source #

trigger :: Date -> (Maybe SignalType -> IO ()) -> IO () Source #

Exec CommandReader Source # 
Instance details

Defined in Xmobar.Plugins.CommandReader

Methods

alias :: CommandReader -> String Source #

rate :: CommandReader -> Int Source #

run :: CommandReader -> IO String Source #

start :: CommandReader -> (String -> IO ()) -> IO () Source #

trigger :: CommandReader -> (Maybe SignalType -> IO ()) -> IO () Source #

Exec BufferedPipeReader Source # 
Instance details

Defined in Xmobar.Plugins.BufferedPipeReader

Methods

alias :: BufferedPipeReader -> String Source #

rate :: BufferedPipeReader -> Int Source #

run :: BufferedPipeReader -> IO String Source #

start :: BufferedPipeReader -> (String -> IO ()) -> IO () Source #

trigger :: BufferedPipeReader -> (Maybe SignalType -> IO ()) -> IO () Source #

Exec Monitors Source # 
Instance details

Defined in Xmobar.Plugins.Monitors

Methods

alias :: Monitors -> String Source #

rate :: Monitors -> Int Source #

run :: Monitors -> IO String Source #

start :: Monitors -> (String -> IO ()) -> IO () Source #

trigger :: Monitors -> (Maybe SignalType -> IO ()) -> IO () Source #

Exec MailX Source # 
Instance details

Defined in Xmobar.Plugins.Mail

Methods

alias :: MailX -> String Source #

rate :: MailX -> Int Source #

run :: MailX -> IO String Source #

start :: MailX -> (String -> IO ()) -> IO () Source #

trigger :: MailX -> (Maybe SignalType -> IO ()) -> IO () Source #

Exec Mail Source # 
Instance details

Defined in Xmobar.Plugins.Mail

Methods

alias :: Mail -> String Source #

rate :: Mail -> Int Source #

run :: Mail -> IO String Source #

start :: Mail -> (String -> IO ()) -> IO () Source #

trigger :: Mail -> (Maybe SignalType -> IO ()) -> IO () Source #

Exec MBox Source # 
Instance details

Defined in Xmobar.Plugins.MBox

Methods

alias :: MBox -> String Source #

rate :: MBox -> Int Source #

run :: MBox -> IO String Source #

start :: MBox -> (String -> IO ()) -> IO () Source #

trigger :: MBox -> (Maybe SignalType -> IO ()) -> IO () Source #

Exec StdinReader Source # 
Instance details

Defined in Xmobar.Plugins.StdinReader

Methods

alias :: StdinReader -> String Source #

rate :: StdinReader -> Int Source #

run :: StdinReader -> IO String Source #

start :: StdinReader -> (String -> IO ()) -> IO () Source #

trigger :: StdinReader -> (Maybe SignalType -> IO ()) -> IO () Source #

Exec XMonadLog Source # 
Instance details

Defined in Xmobar.Plugins.XMonadLog

Methods

alias :: XMonadLog -> String Source #

rate :: XMonadLog -> Int Source #

run :: XMonadLog -> IO String Source #

start :: XMonadLog -> (String -> IO ()) -> IO () Source #

trigger :: XMonadLog -> (Maybe SignalType -> IO ()) -> IO () Source #

Exec Locks Source # 
Instance details

Defined in Xmobar.Plugins.Locks

Methods

alias :: Locks -> String Source #

rate :: Locks -> Int Source #

run :: Locks -> IO String Source #

start :: Locks -> (String -> IO ()) -> IO () Source #

trigger :: Locks -> (Maybe SignalType -> IO ()) -> IO () Source #

Exec Kbd Source # 
Instance details

Defined in Xmobar.Plugins.Kbd

Methods

alias :: Kbd -> String Source #

rate :: Kbd -> Int Source #

run :: Kbd -> IO String Source #

start :: Kbd -> (String -> IO ()) -> IO () Source #

trigger :: Kbd -> (Maybe SignalType -> IO ()) -> IO () Source #

Exec EWMH Source # 
Instance details

Defined in Xmobar.Plugins.EWMH

Methods

alias :: EWMH -> String Source #

rate :: EWMH -> Int Source #

run :: EWMH -> IO String Source #

start :: EWMH -> (String -> IO ()) -> IO () Source #

trigger :: EWMH -> (Maybe SignalType -> IO ()) -> IO () Source #

data Command Source #

Constructors

Com Program Args Alias Rate 
ComX Program Args String Alias Rate 
Instances
Eq Command Source # 
Instance details

Defined in Xmobar.Run.Command

Methods

(==) :: Command -> Command -> Bool

(/=) :: Command -> Command -> Bool

Read Command Source # 
Instance details

Defined in Xmobar.Run.Command

Methods

readsPrec :: Int -> ReadS Command

readList :: ReadS [Command]

readPrec :: ReadPrec Command

readListPrec :: ReadPrec [Command]

Show Command Source # 
Instance details

Defined in Xmobar.Run.Command

Methods

showsPrec :: Int -> Command -> ShowS

show :: Command -> String

showList :: [Command] -> ShowS

Exec Command Source # 
Instance details

Defined in Xmobar.Run.Command

Methods

alias :: Command -> String Source #

rate :: Command -> Int Source #

run :: Command -> IO String Source #

start :: Command -> (String -> IO ()) -> IO () Source #

trigger :: Command -> (Maybe SignalType -> IO ()) -> IO () Source #

Configuration

Configuration data type

data Config Source #

The configuration data type

Constructors

Config 

Fields

  • font :: String

    Font

  • additionalFonts :: [String]

    List of alternative fonts

  • wmClass :: String

    X11 WM_CLASS property value

  • wmName :: String

    X11 WM_NAME property value

  • bgColor :: String

    Backgroud color

  • fgColor :: String

    Default font color

  • position :: XPosition

    Top Bottom or Static

  • textOffset :: Int

    Offset from top of window for text

  • textOffsets :: [Int]

    List of offsets for additionalFonts

  • iconOffset :: Int

    Offset from top of window for icons

  • border :: Border

    NoBorder TopB BottomB or FullB

  • borderColor :: String

    Border color

  • borderWidth :: Int

    Border width

  • alpha :: Int

    Transparency from 0 (transparent) to 255 (opaque)

  • hideOnStart :: Bool

    Hide (Unmap) the window on initialization

  • allDesktops :: Bool

    Tell the WM to map to all desktops

  • overrideRedirect :: Bool

    Needed for dock behaviour in some non-tiling WMs

  • pickBroadest :: Bool

    Use the broadest display instead of the first one by default

  • lowerOnStart :: Bool

    lower to the bottom of the window stack on initialization

  • persistent :: Bool

    Whether automatic hiding should be enabled or disabled

  • iconRoot :: FilePath

    Root folder for icons

  • commands :: [Runnable]

    For setting the command, the command arguments and refresh rate for the programs to run (optional)

  • sepChar :: String

    The character to be used for indicating commands in the output template (default %)

  • alignSep :: String

    Separators for left, center and right text alignment

  • template :: String

    The output template

  • verbose :: Bool

    Emit additional debug messages

Instances
Read Config Source # 
Instance details

Defined in Xmobar.Config.Types

Methods

readsPrec :: Int -> ReadS Config

readList :: ReadS [Config]

readPrec :: ReadPrec Config

readListPrec :: ReadPrec [Config]

data XPosition Source #

Constructors

Top 
TopW Align Int 
TopSize Align Int Int 
TopP Int Int 
Bottom 
BottomP Int Int 
BottomW Align Int 
BottomSize Align Int Int 
Static 

Fields

OnScreen Int XPosition 
Instances
Eq XPosition Source # 
Instance details

Defined in Xmobar.Config.Types

Methods

(==) :: XPosition -> XPosition -> Bool

(/=) :: XPosition -> XPosition -> Bool

Read XPosition Source # 
Instance details

Defined in Xmobar.Config.Types

Methods

readsPrec :: Int -> ReadS XPosition

readList :: ReadS [XPosition]

readPrec :: ReadPrec XPosition

readListPrec :: ReadPrec [XPosition]

data Align Source #

Constructors

L 
R 
C 
Instances
Eq Align Source # 
Instance details

Defined in Xmobar.Config.Types

Methods

(==) :: Align -> Align -> Bool

(/=) :: Align -> Align -> Bool

Read Align Source # 
Instance details

Defined in Xmobar.Config.Types

Methods

readsPrec :: Int -> ReadS Align

readList :: ReadS [Align]

readPrec :: ReadPrec Align

readListPrec :: ReadPrec [Align]

data Border Source #

Constructors

NoBorder 
TopB 
BottomB 
FullB 
TopBM Int 
BottomBM Int 
FullBM Int 
Instances
Eq Border Source # 
Instance details

Defined in Xmobar.Config.Types

Methods

(==) :: Border -> Border -> Bool

(/=) :: Border -> Border -> Bool

Read Border Source # 
Instance details

Defined in Xmobar.Config.Types

Methods

readsPrec :: Int -> ReadS Border

readList :: ReadS [Border]

readPrec :: ReadPrec Border

readListPrec :: ReadPrec [Border]

readConfig :: Config -> FilePath -> IO (Either ParseError (Config, [String])) Source #

Reads the configuration from a file or an error if it cannot be parsed.

parseConfig :: Config -> String -> Either ParseError (Config, [String]) Source #

Parse the config, logging a list of fields that were missing and replaced by the default definition.

data BufferedPipeReader Source #

Constructors

BufferedPipeReader String [(Int, Bool, String)] 
Instances
Read BufferedPipeReader Source # 
Instance details

Defined in Xmobar.Plugins.BufferedPipeReader

Show BufferedPipeReader Source # 
Instance details

Defined in Xmobar.Plugins.BufferedPipeReader

Methods

showsPrec :: Int -> BufferedPipeReader -> ShowS

show :: BufferedPipeReader -> String

showList :: [BufferedPipeReader] -> ShowS

Exec BufferedPipeReader Source # 
Instance details

Defined in Xmobar.Plugins.BufferedPipeReader

Methods

alias :: BufferedPipeReader -> String Source #

rate :: BufferedPipeReader -> Int Source #

run :: BufferedPipeReader -> IO String Source #

start :: BufferedPipeReader -> (String -> IO ()) -> IO () Source #

trigger :: BufferedPipeReader -> (Maybe SignalType -> IO ()) -> IO () Source #

data CommandReader Source #

Constructors

CommandReader String String 
Instances
Read CommandReader Source # 
Instance details

Defined in Xmobar.Plugins.CommandReader

Methods

readsPrec :: Int -> ReadS CommandReader

readList :: ReadS [CommandReader]

readPrec :: ReadPrec CommandReader

readListPrec :: ReadPrec [CommandReader]

Show CommandReader Source # 
Instance details

Defined in Xmobar.Plugins.CommandReader

Methods

showsPrec :: Int -> CommandReader -> ShowS

show :: CommandReader -> String

showList :: [CommandReader] -> ShowS

Exec CommandReader Source # 
Instance details

Defined in Xmobar.Plugins.CommandReader

Methods

alias :: CommandReader -> String Source #

rate :: CommandReader -> Int Source #

run :: CommandReader -> IO String Source #

start :: CommandReader -> (String -> IO ()) -> IO () Source #

trigger :: CommandReader -> (Maybe SignalType -> IO ()) -> IO () Source #

data Date Source #

Constructors

Date String String Int 
Instances
Read Date Source # 
Instance details

Defined in Xmobar.Plugins.Date

Methods

readsPrec :: Int -> ReadS Date

readList :: ReadS [Date]

readPrec :: ReadPrec Date

readListPrec :: ReadPrec [Date]

Show Date Source # 
Instance details

Defined in Xmobar.Plugins.Date

Methods

showsPrec :: Int -> Date -> ShowS

show :: Date -> String

showList :: [Date] -> ShowS

Exec Date Source # 
Instance details

Defined in Xmobar.Plugins.Date

Methods

alias :: Date -> String Source #

rate :: Date -> Int Source #

run :: Date -> IO String Source #

start :: Date -> (String -> IO ()) -> IO () Source #

trigger :: Date -> (Maybe SignalType -> IO ()) -> IO () Source #

data EWMH Source #

Constructors

EWMH 
EWMHFMT Component 
Instances
Read EWMH Source # 
Instance details

Defined in Xmobar.Plugins.EWMH

Methods

readsPrec :: Int -> ReadS EWMH

readList :: ReadS [EWMH]

readPrec :: ReadPrec EWMH

readListPrec :: ReadPrec [EWMH]

Show EWMH Source # 
Instance details

Defined in Xmobar.Plugins.EWMH

Methods

showsPrec :: Int -> EWMH -> ShowS

show :: EWMH -> String

showList :: [EWMH] -> ShowS

Exec EWMH Source # 
Instance details

Defined in Xmobar.Plugins.EWMH

Methods

alias :: EWMH -> String Source #

rate :: EWMH -> Int Source #

run :: EWMH -> IO String Source #

start :: EWMH -> (String -> IO ()) -> IO () Source #

trigger :: EWMH -> (Maybe SignalType -> IO ()) -> IO () Source #

data HandleReader Source #

A HandleReader displays any text received from a Handle.

This is only useful if you are running xmobar from other Haskell code. You can create a pair of (read, write) Handles using createPipe. Pass the read Handle to HandleReader and write your desired output to the write Handle.

 (readHandle, writeHandle) <- createPipe
 xmobarProcess <- forkProcess $ xmobar myConfig
         { commands =
             Run (HandleReader readHandle "handle") : commands myConfig
         }
 hPutStr writeHandle "Hello World"

Constructors

HandleReader 

Fields

  • Handle

    The Handle to read from.

  • String

    Alias for the HandleReader

Instances
Read HandleReader Source #

WARNING: This Read instance will throw an exception if used! It is only implemented because it is required to use HandleReader with Run in commands.

Instance details

Defined in Xmobar.Plugins.HandleReader

Methods

readsPrec :: Int -> ReadS HandleReader

readList :: ReadS [HandleReader]

readPrec :: ReadPrec HandleReader

readListPrec :: ReadPrec [HandleReader]

Show HandleReader Source # 
Instance details

Defined in Xmobar.Plugins.HandleReader

Methods

showsPrec :: Int -> HandleReader -> ShowS

show :: HandleReader -> String

showList :: [HandleReader] -> ShowS

Exec HandleReader Source #

Asynchronously read from the Handle.

Instance details

Defined in Xmobar.Plugins.HandleReader

Methods

alias :: HandleReader -> String Source #

rate :: HandleReader -> Int Source #

run :: HandleReader -> IO String Source #

start :: HandleReader -> (String -> IO ()) -> IO () Source #

trigger :: HandleReader -> (Maybe SignalType -> IO ()) -> IO () Source #

newtype Kbd Source #

Constructors

Kbd [(String, String)] 
Instances
Read Kbd Source # 
Instance details

Defined in Xmobar.Plugins.Kbd

Methods

readsPrec :: Int -> ReadS Kbd

readList :: ReadS [Kbd]

readPrec :: ReadPrec Kbd

readListPrec :: ReadPrec [Kbd]

Show Kbd Source # 
Instance details

Defined in Xmobar.Plugins.Kbd

Methods

showsPrec :: Int -> Kbd -> ShowS

show :: Kbd -> String

showList :: [Kbd] -> ShowS

Exec Kbd Source # 
Instance details

Defined in Xmobar.Plugins.Kbd

Methods

alias :: Kbd -> String Source #

rate :: Kbd -> Int Source #

run :: Kbd -> IO String Source #

start :: Kbd -> (String -> IO ()) -> IO () Source #

trigger :: Kbd -> (Maybe SignalType -> IO ()) -> IO () Source #

data Locks Source #

Constructors

Locks 
Instances
Read Locks Source # 
Instance details

Defined in Xmobar.Plugins.Locks

Methods

readsPrec :: Int -> ReadS Locks

readList :: ReadS [Locks]

readPrec :: ReadPrec Locks

readListPrec :: ReadPrec [Locks]

Show Locks Source # 
Instance details

Defined in Xmobar.Plugins.Locks

Methods

showsPrec :: Int -> Locks -> ShowS

show :: Locks -> String

showList :: [Locks] -> ShowS

Exec Locks Source # 
Instance details

Defined in Xmobar.Plugins.Locks

Methods

alias :: Locks -> String Source #

rate :: Locks -> Int Source #

run :: Locks -> IO String Source #

start :: Locks -> (String -> IO ()) -> IO () Source #

trigger :: Locks -> (Maybe SignalType -> IO ()) -> IO () Source #

data Mail Source #

A list of mail box names and paths to maildirs.

Constructors

Mail [(String, FilePath)] String 
Instances
Read Mail Source # 
Instance details

Defined in Xmobar.Plugins.Mail

Methods

readsPrec :: Int -> ReadS Mail

readList :: ReadS [Mail]

readPrec :: ReadPrec Mail

readListPrec :: ReadPrec [Mail]

Show Mail Source # 
Instance details

Defined in Xmobar.Plugins.Mail

Methods

showsPrec :: Int -> Mail -> ShowS

show :: Mail -> String

showList :: [Mail] -> ShowS

Exec Mail Source # 
Instance details

Defined in Xmobar.Plugins.Mail

Methods

alias :: Mail -> String Source #

rate :: Mail -> Int Source #

run :: Mail -> IO String Source #

start :: Mail -> (String -> IO ()) -> IO () Source #

trigger :: Mail -> (Maybe SignalType -> IO ()) -> IO () Source #

data MailX Source #

A list of mail box names, paths to maildirs and display colors.

Constructors

MailX [(String, FilePath, String)] [String] String 
Instances
Read MailX Source # 
Instance details

Defined in Xmobar.Plugins.Mail

Methods

readsPrec :: Int -> ReadS MailX

readList :: ReadS [MailX]

readPrec :: ReadPrec MailX

readListPrec :: ReadPrec [MailX]

Show MailX Source # 
Instance details

Defined in Xmobar.Plugins.Mail

Methods

showsPrec :: Int -> MailX -> ShowS

show :: MailX -> String

showList :: [MailX] -> ShowS

Exec MailX Source # 
Instance details

Defined in Xmobar.Plugins.Mail

Methods

alias :: MailX -> String Source #

rate :: MailX -> Int Source #

run :: MailX -> IO String Source #

start :: MailX -> (String -> IO ()) -> IO () Source #

trigger :: MailX -> (Maybe SignalType -> IO ()) -> IO () Source #

data MBox Source #

A list of display names, paths to mbox files and display colours, followed by a list of options.

Constructors

MBox [(String, FilePath, String)] [String] String 
Instances
Read MBox Source # 
Instance details

Defined in Xmobar.Plugins.MBox

Methods

readsPrec :: Int -> ReadS MBox

readList :: ReadS [MBox]

readPrec :: ReadPrec MBox

readListPrec :: ReadPrec [MBox]

Show MBox Source # 
Instance details

Defined in Xmobar.Plugins.MBox

Methods

showsPrec :: Int -> MBox -> ShowS

show :: MBox -> String

showList :: [MBox] -> ShowS

Exec MBox Source # 
Instance details

Defined in Xmobar.Plugins.MBox

Methods

alias :: MBox -> String Source #

rate :: MBox -> Int Source #

run :: MBox -> IO String Source #

start :: MBox -> (String -> IO ()) -> IO () Source #

trigger :: MBox -> (Maybe SignalType -> IO ()) -> IO () Source #

data Monitors Source #

Instances
Eq Monitors Source # 
Instance details

Defined in Xmobar.Plugins.Monitors

Methods

(==) :: Monitors -> Monitors -> Bool

(/=) :: Monitors -> Monitors -> Bool

Read Monitors Source # 
Instance details

Defined in Xmobar.Plugins.Monitors

Methods

readsPrec :: Int -> ReadS Monitors

readList :: ReadS [Monitors]

readPrec :: ReadPrec Monitors

readListPrec :: ReadPrec [Monitors]

Show Monitors Source # 
Instance details

Defined in Xmobar.Plugins.Monitors

Methods

showsPrec :: Int -> Monitors -> ShowS

show :: Monitors -> String

showList :: [Monitors] -> ShowS

Exec Monitors Source # 
Instance details

Defined in Xmobar.Plugins.Monitors

Methods

alias :: Monitors -> String Source #

rate :: Monitors -> Int Source #

run :: Monitors -> IO String Source #

start :: Monitors -> (String -> IO ()) -> IO () Source #

trigger :: Monitors -> (Maybe SignalType -> IO ()) -> IO () Source #

type Args = [String] Source #

type Program = String Source #

type Alias = String Source #

type Station = String Source #

type SkyConditions = [(String, String)] Source #

type Zone = String Source #

type ZoneNo = Int Source #

type Interface = String Source #

type Rate = Int Source #

type DiskSpec = [(String, String)] Source #

data PipeReader Source #

Constructors

PipeReader String String 
Instances
Read PipeReader Source # 
Instance details

Defined in Xmobar.Plugins.PipeReader

Methods

readsPrec :: Int -> ReadS PipeReader

readList :: ReadS [PipeReader]

readPrec :: ReadPrec PipeReader

readListPrec :: ReadPrec [PipeReader]

Show PipeReader Source # 
Instance details

Defined in Xmobar.Plugins.PipeReader

Methods

showsPrec :: Int -> PipeReader -> ShowS

show :: PipeReader -> String

showList :: [PipeReader] -> ShowS

Exec PipeReader Source # 
Instance details

Defined in Xmobar.Plugins.PipeReader

Methods

alias :: PipeReader -> String Source #

rate :: PipeReader -> Int Source #

run :: PipeReader -> IO String Source #

start :: PipeReader -> (String -> IO ()) -> IO () Source #

trigger :: PipeReader -> (Maybe SignalType -> IO ()) -> IO () Source #

data MarqueePipeReader Source #

Constructors

MarqueePipeReader String (Length, Rate, Separator) String 
Instances
Read MarqueePipeReader Source # 
Instance details

Defined in Xmobar.Plugins.MarqueePipeReader

Show MarqueePipeReader Source # 
Instance details

Defined in Xmobar.Plugins.MarqueePipeReader

Methods

showsPrec :: Int -> MarqueePipeReader -> ShowS

show :: MarqueePipeReader -> String

showList :: [MarqueePipeReader] -> ShowS

Exec MarqueePipeReader Source # 
Instance details

Defined in Xmobar.Plugins.MarqueePipeReader

Methods

alias :: MarqueePipeReader -> String Source #

rate :: MarqueePipeReader -> Int Source #

run :: MarqueePipeReader -> IO String Source #

start :: MarqueePipeReader -> (String -> IO ()) -> IO () Source #

trigger :: MarqueePipeReader -> (Maybe SignalType -> IO ()) -> IO () Source #

data StdinReader Source #

Instances
Read StdinReader Source # 
Instance details

Defined in Xmobar.Plugins.StdinReader

Methods

readsPrec :: Int -> ReadS StdinReader

readList :: ReadS [StdinReader]

readPrec :: ReadPrec StdinReader

readListPrec :: ReadPrec [StdinReader]

Show StdinReader Source # 
Instance details

Defined in Xmobar.Plugins.StdinReader

Methods

showsPrec :: Int -> StdinReader -> ShowS

show :: StdinReader -> String

showList :: [StdinReader] -> ShowS

Exec StdinReader Source # 
Instance details

Defined in Xmobar.Plugins.StdinReader

Methods

alias :: StdinReader -> String Source #

rate :: StdinReader -> Int Source #

run :: StdinReader -> IO String Source #

start :: StdinReader -> (String -> IO ()) -> IO () Source #

trigger :: StdinReader -> (Maybe SignalType -> IO ()) -> IO () Source #

data XMonadLog Source #

Constructors

XMonadLog 
UnsafeXMonadLog 
XPropertyLog String 
UnsafeXPropertyLog String 
NamedXPropertyLog String String 
UnsafeNamedXPropertyLog String String 
Instances
Read XMonadLog Source # 
Instance details

Defined in Xmobar.Plugins.XMonadLog

Methods

readsPrec :: Int -> ReadS XMonadLog

readList :: ReadS [XMonadLog]

readPrec :: ReadPrec XMonadLog

readListPrec :: ReadPrec [XMonadLog]

Show XMonadLog Source # 
Instance details

Defined in Xmobar.Plugins.XMonadLog

Methods

showsPrec :: Int -> XMonadLog -> ShowS

show :: XMonadLog -> String

showList :: [XMonadLog] -> ShowS

Exec XMonadLog Source # 
Instance details

Defined in Xmobar.Plugins.XMonadLog

Methods

alias :: XMonadLog -> String Source #

rate :: XMonadLog -> Int Source #

run :: XMonadLog -> IO String Source #

start :: XMonadLog -> (String -> IO ()) -> IO () Source #

trigger :: XMonadLog -> (Maybe SignalType -> IO ()) -> IO () Source #