mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-01 20:51:52 -07:00
Combo.hs: info and documentation
This commit is contained in:
33
Combo.hs
33
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.
|
-- A layout that combines multiple layouts.
|
||||||
|
--
|
||||||
|
-----------------------------------------------------------------------------
|
||||||
|
|
||||||
-- To use this layout, 'import XMonadContrib.Combo' and add something like
|
module XMonadContrib.Combo (
|
||||||
-- 'combo [(full,1),(tabbed,1)] (twoPane 0.03 0.5)' to your defaultLayouts.
|
-- * Usage
|
||||||
|
-- $usage
|
||||||
module XMonadContrib.Combo where
|
combo
|
||||||
|
) where
|
||||||
|
|
||||||
import XMonad
|
import XMonad
|
||||||
import StackSet ( integrate, differentiate )
|
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 :: [(Layout, Int)] -> Layout -> Layout
|
||||||
combo origls super = Layout { doLayout = \r s -> arrange r (integrate s), modifyLayout = message }
|
combo origls super = Layout { doLayout = \r s -> arrange r (integrate s), modifyLayout = message }
|
||||||
where arrange _ [] = return []
|
where arrange _ [] = return []
|
||||||
|
Reference in New Issue
Block a user