summaryrefslogtreecommitdiffstats
path: root/Config.hs
diff options
context:
space:
mode:
authorDavid Roundy <droundy@darcs.net>2007-05-03 16:47:50 +0200
committerDavid Roundy <droundy@darcs.net>2007-05-03 16:47:50 +0200
commit60ec8b60b2f772bf06bde0c5fc45aaedb77d0b71 (patch)
tree1d0b462b8304b685d3ceda3fbf06f92c56c9d509 /Config.hs
parent22f17b20d9ff1e9b9563bdfa976702e560e395d2 (diff)
downloadmetatile-60ec8b60b2f772bf06bde0c5fc45aaedb77d0b71.tar
metatile-60ec8b60b2f772bf06bde0c5fc45aaedb77d0b71.zip
add support for extensible layouts.
darcs-hash:20070503144750-72aca-f44bca4573837e12fc1f89333b55e04abd52787c
Diffstat (limited to 'Config.hs')
-rw-r--r--Config.hs17
1 files changed, 5 insertions, 12 deletions
diff --git a/Config.hs b/Config.hs
index 79dbb6f..59d2c38 100644
--- a/Config.hs
+++ b/Config.hs
@@ -133,16 +133,9 @@ focusedBorderColor = "#ff0000"
borderWidth :: Dimension
borderWidth = 2
--- A LayoutDesc specifies two things:
--- * what layout mode to use by default
--- * what default screen ratio of master/slave areas are used when tiling
---
--- See LayoutDesc and friends in XMonad.hs for options.
---
-defaultLayoutDesc :: LayoutDesc
-defaultLayoutDesc =
- LayoutDesc { layoutType = Full
- , tileFraction = 2%3 }
+-- The default set of Layouts:
+defaultLayouts :: [Layout]
+defaultLayouts = [ full, tall defaultDelta (2%3), wide defaultDelta (2%3) ]
--
-- The key bindings list.
@@ -161,8 +154,8 @@ keys = M.fromList $
, ((modMask, xK_j ), raise GT)
, ((modMask, xK_k ), raise LT)
- , ((modMask, xK_h ), changeSplit (negate defaultDelta))
- , ((modMask, xK_l ), changeSplit defaultDelta)
+ , ((modMask, xK_h ), layoutMsg Expand)
+ , ((modMask, xK_l ), layoutMsg Shrink)
, ((modMask .|. shiftMask, xK_c ), kill)