xmonad-contrib-0.6: Third party extensions for xmonadSource codeContentsIndex
XMonad.Layout.Mosaic
Portabilityunportable
Stabilityunstable
MaintainerDavid Roundy <droundy@darcs.net>
Contents
Usage
Description
This module defines a "mosaic" layout, which tries to give each window a user-configurable relative area, while also trying to give them aspect ratios configurable at run-time by the user.
Synopsis
mosaic :: Double -> Double -> MosaicLayout Window
shrinkWindow :: Window -> HandleWindow
getName :: Window -> X NamedWindow
Usage

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

 import XMonad.Layout.Mosaic

Then edit your layoutHook by adding the Mosaic layout:

 myLayouts = mosaic 0.25 0.5 ||| Full ||| etc..
 main = xmonad defaultConfig { layoutHook = myLayouts }

For more detailed instructions on editing the layoutHook see:

XMonad.Doc.Extending#Editing_the_layout_hook

In the key-bindings, do something like:

   , ((controlMask .|. modMask x .|. shiftMask, xK_h), withFocused (sendMessage . tallWindow))
   , ((controlMask .|. modMask x .|. shiftMask, xK_l), withFocused (sendMessage . wideWindow))
   , ((modMask x .|. shiftMask, xK_h     ), withFocused (sendMessage . shrinkWindow))
   , ((modMask x .|. shiftMask, xK_l     ), withFocused (sendMessage . expandWindow))
   , ((modMask x .|. shiftMask, xK_s     ), withFocused (sendMessage . squareWindow))
   , ((modMask x .|. shiftMask, xK_o     ), withFocused (sendMessage . myclearWindow))
   , ((controlMask .|. modMask x .|. shiftMask, xK_o     ), withFocused (sendMessage . flexibleWindow))

For detailed instruction on editing the key binding see:

XMonad.Doc.Extending#Editing_key_bindings.

mosaic :: Double -> Double -> MosaicLayout WindowSource
shrinkWindow :: Window -> HandleWindowSource
getName :: Window -> X NamedWindowSource
Produced by Haddock version 2.3.0