Copyright | (c) 2020 Ivan Malison |
---|---|
License | BSD3-style (see LICENSE) |
Maintainer | Ivan Malison <ivanmalison@gmail.com> |
Stability | unstable |
Portability | unportable |
Safe Haskell | Safe-Inferred |
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 $ def ...
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.