xmonad-contrib-0.11.4: Third party extensions for xmonad

Copyright(c) Ben Boeckel 2012
LicenseBSD-style (as xmonad)
Maintainermathstuf@gmail.com
Stabilityunstable
Portabilityunportable
Safe HaskellNone
LanguageHaskell98

XMonad.Hooks.DynamicBars

Contents

Description

Manage per-screen status bars.

Synopsis

Usage

Provides a few helper functions to manage per-screen status bars while dynamically responding to screen changes. A startup action, event hook, and a way to separate PP styles based on the screen's focus are provided:

  • The dynStatusBarStartup hook which initializes the status bars.
  • The dynStatusBarEventHook hook which respawns status bars when the number of screens changes.
  • The multiPP function which allows for different output based on whether the screen for the status bar has focus.

The hooks take a DynamicStatusBar function which is given the id of the screen to start up and returns the Handle to the pipe to write to. The DynamicStatusBarCleanup argument should tear down previous instances. It is called when the number of screens changes and on startup.

type DynamicStatusBar = ScreenId -> IO Handle Source

multiPP Source

Arguments

:: PP

The PP to use if the screen is focused

-> PP

The PP to use otherwise

-> X ()