xmobar

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

Config

Contents

Description

The configuration module of Xmobar, a text based status bar

Synopsis

Configuration

Configuration data type and default configuration

data Config

The configuration data type

Constructors

Config 

Fields

font :: String

Font

additionalFonts :: [String]

List of alternative fonts

bgColor :: String

Backgroud color

fgColor :: String

Default font color

position :: XPosition

Top Bottom or Static

textOffset :: Int

Offset from top of window for text

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

Instances

Read Config 

data XPosition

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

xpos :: Int
 
ypos :: Int
 
width :: Int
 
height :: Int
 
OnScreen Int XPosition 

Instances

Eq XPosition 
Read XPosition 

data Align

Constructors

L 
R 
C 

Instances

Eq Align 
Read Align 

data Border

Constructors

NoBorder 
TopB 
BottomB 
FullB 
TopBM Int 
BottomBM Int 
FullBM Int 

Instances

Eq Border 
Read Border 

defaultConfig :: Config

The default configuration values

runnableTypes :: Command :*: (Monitors :*: (Date :*: (PipeReader :*: (BufferedPipeReader :*: (CommandReader :*: (StdinReader :*: (XMonadLog :*: (EWMH :*: (Kbd :*: (Locks :*: (Mail :*: (MBox :*: (DateZone :*: (MarqueePipeReader :*: ()))))))))))))))

This is the list of types that can be hidden inside Runnable, the existential type that stores all commands to be executed by Xmobar. It is used by readRunnable in the Runnable Read instance. To install a plugin just add the plugin's type to the list of types (separated by :*:) appearing in this function's type signature.