diff options
author | Andrea Rossato <andrea.rossato@unibz.it> | 2007-06-14 16:43:17 +0200 |
---|---|---|
committer | Andrea Rossato <andrea.rossato@unibz.it> | 2007-06-14 16:43:17 +0200 |
commit | 5e444e1fe39d33d994f1dfc3087dc2a34c91bf91 (patch) | |
tree | f9133c82d3bafffaa6ad6f305a6988078551cf44 | |
parent | 312808481d2ab51e45a17f3130ffd1a0d081bd33 (diff) | |
download | XMonadContrib-5e444e1fe39d33d994f1dfc3087dc2a34c91bf91.tar.gz XMonadContrib-5e444e1fe39d33d994f1dfc3087dc2a34c91bf91.tar.xz XMonadContrib-5e444e1fe39d33d994f1dfc3087dc2a34c91bf91.zip |
Square.hs: info and documentation
darcs-hash:20070614144317-32816-72b4714e9b985db649300baf80ef5f0ebf16c9cf.gz
Diffstat (limited to '')
-rw-r--r-- | Square.hs | 45 |
1 files changed, 35 insertions, 10 deletions
@@ -1,20 +1,45 @@ +----------------------------------------------------------------------------- +-- | +-- Module : XMonadContrib.Square +-- Copyright : (c) David Roundy <droundy@darcs.net> +-- License : BSD3-style (see LICENSE) +-- +-- Maintainer : David Roundy <droundy@darcs.net> +-- Stability : unstable +-- Portability : unportable +-- -- A layout that splits the screen into a square area and the rest of the -- screen. - - --- An example layout using square to make the very last area square: - --- , combo [(tabbed,3),(tabbed,30),(tabbed,1),(tabbed,1)] --- (combo [(twoPane 0.03 0.2,1) --- ,(combo [(twoPane 0.03 0.8,1),(square,1)] --- (mirror $ twoPane 0.03 0.85),1)] (twoPane 0.03 0.5) ) - -module XMonadContrib.Square ( square ) where +-- This is probably only ever useful in combination with +-- "XMonadContrib.Combo". +-- It sticks one window in a square region, and makes the rest +-- of the windows live with what's left (in a full-screen sense). +-- +----------------------------------------------------------------------------- + +module XMonadContrib.Square ( + -- * Usage + -- $usage + square ) where import XMonad import Graphics.X11.Xlib import StackSet ( integrate ) +-- $usage +-- You can use this module with the following in your Config.hs file: +-- +-- > import XMonadContrib.Spiral +-- +-- An example layout using square together with "XMonadContrib.Combo" +-- to make the very last area square: +-- +-- > , combo [(tabbed,3),(tabbed,30),(tabbed,1),(tabbed,1)] +-- > (combo [(twoPane 0.03 0.2,1) +-- > ,(combo [(twoPane 0.03 0.8,1),(square,1)] +-- > (mirror $ twoPane 0.03 0.85),1)] (twoPane 0.03 0.5) ) + + square :: Layout square = Layout { doLayout = \r s -> arrange r (integrate s), modifyLayout = message } where |