mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-15 20:23:55 -07:00
Docstring parser for generating xmonad build configs with default settings for extensions
This commit is contained in:
6
Combo.hs
6
Combo.hs
@@ -32,7 +32,7 @@ import StackSet ( integrate, differentiate )
|
||||
--
|
||||
-- and add something like
|
||||
--
|
||||
-- > simpleStacking $ combo (twoPane 0.03 0.5) [(full,1),(tabbed shrinkText,1)]
|
||||
-- > simpleStacking $ combo (twoPane 0.03 0.5) [(full,1),(tabbed shrinkText defaultTConf,1)]
|
||||
--
|
||||
-- to your defaultLayouts.
|
||||
--
|
||||
@@ -43,6 +43,10 @@ import StackSet ( integrate, differentiate )
|
||||
-- windows this section should hold. This number is ignored for the last
|
||||
-- layout, which will hold any excess windows.
|
||||
|
||||
-- %import XMonadContrib.Combo
|
||||
-- %import XMonadContrib.SimpleStacking
|
||||
-- %layout , simpleStacking $ combo (twoPane 0.03 0.5) [(full,1),(tabbed shrinkText defaultTConf,1)]
|
||||
|
||||
combo :: Layout (Layout a, Int) -> [(Layout a, Int)] -> Layout a
|
||||
combo super origls = Layout { doLayout = \r s -> arrange r (integrate s), modifyLayout = message }
|
||||
where arrange _ [] = return ([], Nothing)
|
||||
|
Reference in New Issue
Block a user