aboutsummaryrefslogtreecommitdiffstats
path: root/Combo.hs
diff options
context:
space:
mode:
authorAndrea Rossato <andrea.rossato@unibz.it>2007-06-14 16:37:00 +0200
committerAndrea Rossato <andrea.rossato@unibz.it>2007-06-14 16:37:00 +0200
commit887dc0dad16a338764a2938ab52996a62480806b (patch)
treed3a9688a82ea6ebbb295bec4cb0609fa21af25d6 /Combo.hs
parenta220b3ccc5120a25daa1f436d4345ad7dfc30fa8 (diff)
downloadXMonadContrib-887dc0dad16a338764a2938ab52996a62480806b.tar.gz
XMonadContrib-887dc0dad16a338764a2938ab52996a62480806b.tar.xz
XMonadContrib-887dc0dad16a338764a2938ab52996a62480806b.zip
Combo.hs: info and documentation
darcs-hash:20070614143700-32816-1f77a0f873d4683088dcadc2a4910ef1c740015f.gz
Diffstat (limited to 'Combo.hs')
-rw-r--r--Combo.hs33
1 files changed, 29 insertions, 4 deletions
diff --git a/Combo.hs b/Combo.hs
index 449a837..6b29ae8 100644
--- a/Combo.hs
+++ b/Combo.hs
@@ -1,13 +1,38 @@
+-----------------------------------------------------------------------------
+-- |
+-- Module : XMonadContrib.Combo
+-- Copyright : (c) David Roundy <droundy@darcs.net>
+-- License : BSD-style (see LICENSE)
+--
+-- Maintainer : David Roundy <droundy@darcs.net>
+-- Stability : unstable
+-- Portability : unportable
+--
-- A layout that combines multiple layouts.
+--
+-----------------------------------------------------------------------------
--- To use this layout, 'import XMonadContrib.Combo' and add something like
--- 'combo [(full,1),(tabbed,1)] (twoPane 0.03 0.5)' to your defaultLayouts.
-
-module XMonadContrib.Combo where
+module XMonadContrib.Combo (
+ -- * Usage
+ -- $usage
+ combo
+ ) where
import XMonad
import StackSet ( integrate, differentiate )
+-- $usage
+--
+-- To use this layout write, in your Config.hs:
+--
+-- > import XMonadContrib.Combo
+--
+-- and add something like
+--
+-- > combo [(full,1),(tabbed,1)] (twoPane 0.03 0.5)
+--
+-- to your defaultLayouts.
+
combo :: [(Layout, Int)] -> Layout -> Layout
combo origls super = Layout { doLayout = \r s -> arrange r (integrate s), modifyLayout = message }
where arrange _ [] = return []