xmonad-contrib-0.5: Third party extensions for xmonadSource codeContentsIndex
XMonad.Hooks.ManageDocks
Portabilityunportable
Stabilityunstable
MaintainerJoachim Breitner <mail@joachim-breitner.de>
Contents
Usage
Description
This module provides tools to automatically manage dock type programs, such as gnome-panel, kicker, dzen, and xmobar.
Synopsis
manageDocks :: ManageHook
data AvoidStruts l a
avoidStruts :: LayoutClass l a => l a -> AvoidStruts l a
data ToggleStruts = ToggleStruts
Usage

To use this module, add the following import to ~/.xmonad/xmonad.hs:

 import XMonad.Hooks.ManageDocks

The first component is a ManageHook which recognizes these windows. To enable it:

 manageHook = ... <+> manageDocks

The second component is a layout modifier that prevents windows from overlapping these dock windows. It is intended to replace xmonad's so-called gap support. First, you must add it to your list of layouts:

 layoutHook = avoidStruts (tall ||| mirror tall ||| ...)

AvoidStruts also supports toggling the dock gap, add a keybinding similar to:

 ,((modMask,               xK_b     ), sendMessage ToggleStruts)
manageDocks :: ManageHookSource
Detects if the given window is of type DOCK and if so, reveals it, but does not manage it. If the window has the STRUT property set, adjust the gap accordingly.
data AvoidStruts l a Source
show/hide Instances
LayoutClass l a => LayoutClass (AvoidStruts l) a
Read (l a) => Read (AvoidStruts l a)
Show (l a) => Show (AvoidStruts l a)
avoidStruts :: LayoutClass l a => l a -> AvoidStruts l aSource
Adjust layout automagically.
data ToggleStruts Source
Constructors
ToggleStruts
show/hide Instances
Produced by Haddock version 2.3.0