XMonad.Hooks.ManageDocks
lastmod 2021-02-21created 2020-09-272 edits
This module provides tools to automatically manage dock-type programs, such as gnome-panel, kicker, dzen, and xmobar.
Usage
To use this module, add the following import to ~/.xmonad/xmonad.hs:
Wrap your xmonad config with a call to docks, like so:
Then add the avoidStruts or avoidStrutsOn layout modifier to your layout to prevent windows from overlapping these windows.
AvoidStruts also supports toggling the dock gaps. Add a key binding similar to:
If you have multiple docks, you can toggle their gaps individually. For example, to toggle only the top gap:
Similarly, you can use Direction2D, L, and R to individually toggle the gaps on the bottom, left, or right.
If you want to avoid some docks and cover others by default, you can use avoidStrutsOn to manually specify the sides of the screen on which docks should be avoided. For example:
For detailed instructions on editing your key bindings, see XMonad.Doc.Extending.