| ||||||||
| ||||||||
| ||||||||
Description | ||||||||
Make layouts respect size hints. | ||||||||
Synopsis | ||||||||
| ||||||||
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: | ||||||||
| ||||||||
| ||||||||
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. | ||||||||
| ||||||||
| ||||||||
| ||||||||
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 |