Copyright | (c) 2020 Ivan Malison |
---|---|
License | BSD3-style (see LICENSE) |
Maintainer | Ivan Malison <ivanmalison@gmail.com> |
Stability | unstable |
Portability | unportable |
Safe Haskell | None |
Language | Haskell2010 |
This module exports additional X properties that allow taffybar to understand the state of XMonad.
Synopsis
- pagerHints :: XConfig a -> XConfig a
- pagerHintsLogHook :: X ()
- pagerHintsEventHook :: Event -> X All
- setCurrentLayoutProp :: String -> X ()
- setVisibleWorkspacesProp :: [String] -> X ()
Documentation
You can use this module with the following in your xmonad.hs
file:
import XMonad.Hooks.TaffybarPagerHints (pagerHints) main = xmonad $ ewmh $ pagerHints $ defaultConfig ...
pagerHints :: XConfig a -> XConfig a Source #
Add support for the "Current Layout" and "Visible Workspaces" custom hints to the given config.
pagerHintsLogHook :: X () Source #
Update the current values of both custom hints.
pagerHintsEventHook :: Event -> X All Source #
Handle all "Current Layout" events received from pager widgets, and set the current layout accordingly.
setCurrentLayoutProp :: String -> X () Source #
Set the value of the "Current Layout" custom hint to the one given.
setVisibleWorkspacesProp :: [String] -> X () Source #
Set the value of the "Visible Workspaces" hint to the one given.