|
XMonad.Hooks.DynamicLog | Portability | unportable | Stability | unstable | Maintainer | Don Stewart <dons@cse.unsw.edu.au> |
|
|
|
|
|
Description |
DynamicLog
By default, log events in:
1 2 [3] 4 8
format, although the format is highly customizable.
Suitable to pipe into dzen or xmobar.
|
|
Synopsis |
|
|
|
|
Usage
|
|
You can use this module with the following in your ~/.xmonad/xmonad.hs:
import XMonad
import XMonad.Hooks.DynamicLog
main = xmonad defaultConfig { logHook = dynamicLog }
|
|
|
An example log hook, print a status bar output to stdout, in the form:
1 2 [3] 4 7 : full : title
That is, the currently populated workspaces, the current
workspace layout, and the title of the focused window.
|
|
|
An example log hook that emulates dwm's status bar, using colour codes printed to dzen
Requires dzen. Workspaces, xinerama, layouts and the window title are handled.
|
|
|
These are good defaults to be used with the xmobar status bar
|
|
|
A log function that uses the PP hooks to customize output.
|
|
|
Workspace logger with a format designed for Xinerama:
[1 9 3] 2 7
where 1, 9, and 3 are the workspaces on screens 1, 2 and 3, respectively,
and 2 and 7 are non-visible, non-empty workspaces
|
|
|
Run xmonad with a dzen status bar set to some nice defaults. Output
is taken from the dynamicLogWithPP hook.
main = dzen xmonad
The intent is that the above config file should provide a nice status
bar with minimal effort.
|
|
|
|
|
|
|
The PP type allows the user to customize various behaviors of
dynamicLogPP
| Constructors | |
|
|
|
The default pretty printing options, as seen in dynamicLog
|
|
|
Settings to emulate dwm's statusbar, dzen only
|
|
|
The options that sjanssen likes to use, as an example. Note the use of
xmobarColor and the record update on defaultPP
|
|
|
|
|
|
|
|
|
|
|
|
|
Escape any dzen metacharacters.
|
|
|
An example xmonad config that spawns a new dzen toolbar and uses the default
dynamic log output
|
|
Produced by Haddock version 2.3.0 |