xmonad-contrib-0.11.4: Third party extensions for xmonad

Copyright(c) Lukas Mai
LicenseBSD-style (see LICENSE)
Maintainer<l.mai@web.de>
Stabilityunstable
Portabilityunportable
Safe HaskellNone
LanguageHaskell98

XMonad.Layout.Grid

Contents

Description

A simple layout that attempts to put all windows in a square grid.

Synopsis

Usage

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

import XMonad.Layout.Grid

Then edit your layoutHook by adding the Grid layout:

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

You can also specify an aspect ratio for Grid to strive for with the GridRatio constructor. For example, if you want Grid to try to make a grid four windows wide and three windows tall, you could use

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

For more detailed instructions on editing the layoutHook see:

XMonad.Doc.Extending

data Grid a Source

Constructors

Grid 
GridRatio Double 

Instances

LayoutClass Grid a Source 
Read (Grid a) Source 
Show (Grid a) Source 

arrange :: Double -> Rectangle -> [a] -> [(a, Rectangle)] Source