xmonad-contrib-bluetilebranch-0.8.1: Third party extensions for xmonadSource codeContentsIndex
XMonad.Layout.LayoutHints
Portabilityportable
Stabilityunstable
Maintainernone
Contents
usage
Description
Make layouts respect size hints.
Synopsis
layoutHints :: LayoutClass l a => l a -> ModifiedLayout LayoutHints l a
layoutHintsWithPlacement :: LayoutClass l a => (Double, Double) -> l a -> ModifiedLayout LayoutHints l a
data LayoutHints a
placeRectangle :: RealFrac r => (r, r) -> Rectangle -> Rectangle -> Rectangle
usage

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

 import XMonad.Layout.LayoutHints

Then edit your layoutHook by adding the layoutHints layout modifier to some layout:

 myLayouts = layoutHints (Tall 1 (3/100) (1/2))  ||| Full ||| etc..
 main = xmonad defaultConfig { layoutHook = myLayouts }

Or, to center the adapted window in its available area:

 myLayouts = layoutHintsWithPlacement (0.5, 0.5) (Tall 1 (3/100) (1/2))  
                   ||| Full ||| etc..

For more detailed instructions on editing the layoutHook see:

XMonad.Doc.Extending

layoutHints :: LayoutClass l a => l a -> ModifiedLayout LayoutHints l aSource
layoutHintsWithPlacement :: LayoutClass l a => (Double, Double) -> l a -> ModifiedLayout LayoutHints l aSource
layoutHintsWithPlacement (rx, ry) layout will adapt the sizes of a layout's windows according to their size hints, and position them inside their originally assigned area according to the rx and ry parameters. (0, 0) places the window at the top left, (1, 0) at the top right, (0.5, 0.5) at the center, etc.
data LayoutHints a Source
show/hide Instances
placeRectangle :: RealFrac r => (r, r) -> Rectangle -> Rectangle -> RectangleSource
placeRectangle (rx, ry) r0 r will return a new rectangle with the same dimensions as r, but positioned inside of r0 as specified by the (rx, ry) parameters (see layoutHintsWithPlacement).
Produced by Haddock version 2.4.2