xmonad-contrib-0.18.1.9: Community-maintained extensions for xmonad
Copyright(c) Lukas Mai
LicenseBSD-style (see LICENSE)
Maintainer<l.mai@web.de>
Stabilityunstable
Portabilityunportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

XMonad.Layout.HintedGrid

Contents

Description

A not so simple layout that attempts to put all windows in a square grid while obeying their size hints.

Synopsis

Usage

You can use this module with the following in your xmonad.hs:

import XMonad.Layout.HintedGrid

Then edit your layoutHook by adding the Grid layout:

myLayout = Grid False ||| Full ||| etc..
main = xmonad def { layoutHook = myLayout }

You can also specify an aspect ratio for Grid to strive for with the GridRatio constructor:

myLayout = GridRatio (4/3) False ||| etc.

For more detailed instructions on editing the layoutHook see the tutorial and XMonad.Doc.Extending.

data Grid a Source #

Automatic mirroring of hinted layouts doesn't work very well, so this Grid comes with built-in mirroring. Grid False is the normal layout, Grid True is the mirrored variant (rotated by 90 degrees).

Constructors

Grid Bool 
GridRatio Double Bool 

arrange :: Double -> Bool -> Rectangle -> [Window] -> X [(Window, Rectangle)] Source #

The internal function for computing the grid layout.