Portability | unportable |
---|---|
Stability | unstable |
Maintainer | Ilya Portnov <portnov84@rambler.ru> |
Safe Haskell | None |
XMonad.Layout.IfMax
Contents
Description
Provides IfMax layout, which will run one layout if there are maximum N windows on workspace, and another layout, when number of windows is greater than N.
Usage
IfMax layout will run one layout if number of windows on workspace is as maximum N, and else will run another layout.
You can use this module by adding folowing in your xmonad.hs
:
import XMonad.Layout.IfMax
Then add layouts to your layoutHook:
myLayoutHook = IfMax 2 Full (Tall ...) ||| ...
In this example, if there are 1 or 2 windows, Full layout will be used; otherwise, Tall layout will be used.