summaryrefslogtreecommitdiffstats
path: root/Config.hs
diff options
context:
space:
mode:
authorJason Creighton <jcreigh@gmail.com>2007-05-16 05:14:37 +0200
committerJason Creighton <jcreigh@gmail.com>2007-05-16 05:14:37 +0200
commit18d3fa1ae2c4023cbee535832c40a6cc4470d403 (patch)
treee598766453c94b3607a9d75b048d1da2a880a784 /Config.hs
parentc819d0ecd11dac28536bb55b8e5226acff9f6757 (diff)
downloadmetatile-18d3fa1ae2c4023cbee535832c40a6cc4470d403.tar
metatile-18d3fa1ae2c4023cbee535832c40a6cc4470d403.zip
variable number of windows in master area
darcs-hash:20070516031437-b9aa7-03d82cb2565a45fa0e17a34c4c20740b51ff625c
Diffstat (limited to 'Config.hs')
-rw-r--r--Config.hs11
1 files changed, 10 insertions, 1 deletions
diff --git a/Config.hs b/Config.hs
index 196515d..e6a9101 100644
--- a/Config.hs
+++ b/Config.hs
@@ -111,6 +111,10 @@ modMask = mod1Mask
defaultDelta :: Rational
defaultDelta = 3%100
+-- The default number of windows in the master area
+defaultWindowsInMaster :: Int
+defaultWindowsInMaster = 1
+
-- numlock handling:
--
-- The mask for the numlock key. You may need to change this on some systems.
@@ -135,7 +139,9 @@ borderWidth = 1
-- The default set of Layouts:
defaultLayouts :: [Layout]
-defaultLayouts = [ full, tall defaultDelta (1%2), wide defaultDelta (1%2) ]
+defaultLayouts = [ full,
+ tall defaultWindowsInMaster defaultDelta (1%2),
+ wide defaultWindowsInMaster defaultDelta (1%2) ]
--
-- The key bindings list.
@@ -157,6 +163,9 @@ keys = M.fromList $
, ((modMask, xK_h ), sendMessage Shrink)
, ((modMask, xK_l ), sendMessage Expand)
+ , ((modMask .|. shiftMask, xK_j ), sendMessage (IncMasterN 1))
+ , ((modMask .|. shiftMask, xK_k ), sendMessage (IncMasterN (-1)))
+
, ((modMask .|. shiftMask, xK_c ), kill)
, ((modMask .|. shiftMask, xK_q ), io $ exitWith ExitSuccess)