xmobar
This function works like
xmobarProp, but uses pipes instead of
property-based logging.
Not on Stackage, so not searched.
A Minimalistic Text Based Status Bar
Encapsulate text with an action. The text will be displayed, and the
action executed when the displayed text is clicked. Illegal input is
not filtered, allowing xmobar to display any parse errors. Uses
xmobar's new syntax wherein the command is surrounded by backticks.
Use xmobar box to add a border to an arbitrary string.
Use xmobar escape codes to output a string with given foreground and
background colors.
Some nice xmobar defaults.
Run xmonad with a property-based xmobar status bar set to some nice
defaults.
main = xmonad $ xmobarProp myConfig
myConfig = def { ... }
The intent is that the above config file should provide a nice status
bar with minimal effort. Note that you still need to configure xmobar
to use the
XMonadLog plugin instead of the default
StdinReader, see above.
If you wish to customize the status bar format at all, use the
modernized interface provided by the
XMonad.Hooks.StatusBar and
XMonad.Hooks.StatusBar.PP modules instead.
The binding uses the
XMonad.Hooks.ManageDocks module to
automatically handle screen placement for xmobar, and enables 'mod-b'
for toggling the menu bar.
Encapsulate arbitrary text for display only, i.e. untrusted content if
wrapped (perhaps from window titles) will be displayed only, with all
tags ignored. Introduced in xmobar 0.21; see their documentation. Be
careful not to shorten the result.
Strip xmobar markup, specifically the <fc>, <icon> and
<action> tags and the matching tags like </fc>.
Use xmobar escape codes to output a string with the font at the given
index
Color a logger's output with xmobar foreground and background colors.
xmobarColorL "#6A5ACD" "gray6" loadAverage
A generic version of
trayerPaddingXmobarEventHook that allows
the user to specify how to identify a tray window and the property to
use with
xmonadPropLog'. This is useful for other trays like
stalonetray and also when space for more than one tray-like window
needs to be reserved.
A simple trayer/xmobar-specific event hook that watches for trayer
window resize changes and updates the _XMONAD_TRAYPAD property with
xmobar markup that leaves a gap for the trayer.