xmonad-contrib-0.9.1: Third party extensions for xmonadSource codeContentsIndex
XMonad.Layout.HintedTile
Portabilityunportable
Stabilityunstable
MaintainerPeter De Wachter <pdewacht@gmail.com> Andrea Rossato <andrea.rossato@unibz.it>
Contents
Usage
Description
A gapless tiled layout that attempts to obey window size hints, rather than simply ignoring them.
Synopsis
data HintedTile a = HintedTile {
nmaster :: !Int
delta :: !Rational
frac :: !Rational
alignment :: !Alignment
orientation :: !Orientation
}
data Orientation
= Wide
| Tall
data Alignment
= TopLeft
| Center
| BottomRight
Usage

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

 import XMonad.Layout.HintedTile

Then edit your layoutHook by adding the HintedTile layout:

 myLayout = hintedTile Tall ||| hintedTile Wide ||| Full ||| etc..
   where
      hintedTile = HintedTile nmaster delta ratio TopLeft
      nmaster    = 1
      ratio      = 1/2
      delta      = 3/100
 main = xmonad defaultConfig { layoutHook = myLayout }

Because both Xmonad and Xmonad.Layout.HintedTile define Tall, you need to disambiguate Tall. If you are replacing the built-in Tall with HintedTile, change import Xmonad to import Xmonad hiding (Tall).

For more detailed instructions on editing the layoutHook see:

XMonad.Doc.Extending

data HintedTile a Source
Constructors
HintedTile
nmaster :: !Intnumber of windows in the master pane
delta :: !Rationalhow much to change when resizing
frac :: !Rationalratio between master/nonmaster panes
alignment :: !AlignmentWhere to place windows that are smaller than their preordained rectangles.
orientation :: !OrientationTall or Wide (mirrored) layout?
data Orientation Source
Constructors
WideLay out windows similarly to Mirror tiled.
TallLay out windows similarly to tiled.
data Alignment Source
Constructors
TopLeft
Center
BottomRight
Produced by Haddock version 2.6.0