tianbar-0.4.8.0: A desktop bar based on WebKit

Safe HaskellNone
LanguageHaskell2010

System.Tianbar.XMonadLog

Description

A hook for XMonad window manager to send updates to the corresponding Tianbar widget.

You must include tianbar:scripts/xmonad.js in Tianbar configuration to receive the updates.

A Renderer can be used to fully customize the output. A renderer is a function receiving all the status information and returning HTML which will be displayed in the corresponding element of the status bar.

For convenience, a renderer returning Markup can be used as well.

Synopsis

Documentation

dbusLog :: Client -> X () Source

Tianbar logger with a default renderer.

dbusLogWithMarkup :: Client -> MarkupRenderer -> X () Source

Tianbar logger with a Blaze renderer.

dbusLogWithRenderer :: Client -> Renderer String -> X () Source

Tianbar logger with a renderer emitting a string.

tianbarMarkup :: MarkupRenderer Source

Default Tianbar renderer.

data WindowSpaceInfo Source

Workspace information.

Constructors

WindowSpaceInfo 

Fields

wsTag :: String

workspace tag

wsCurrent :: Bool

whether the workspace is current

wsHidden :: Bool

whether the workspace is hidden

wsUrgent :: Bool

whether the workspace has any urgent windows

wsEmpty :: Bool

whether the workspace is empty (has no windows)

type Renderer a Source

Arguments

 = String

layout description

-> String

active window title

-> [WindowSpaceInfo]

workspaces

-> [Window]

urgent windows

-> WindowSet

all windows

-> a 

A function to format the status information.