summaryrefslogtreecommitdiffstats
path: root/XMonad.hs
diff options
context:
space:
mode:
authorhughes <hughes@rpi.edu>2007-04-01 04:18:46 +0200
committerhughes <hughes@rpi.edu>2007-04-01 04:18:46 +0200
commitf796fb0976b65620a4e6ab80e045e1be3fdeb0de (patch)
tree7b76ffe8c446e89c1bf0ddba1dc2e8bfa91428cf /XMonad.hs
parent5efebb7fd6b4980237ca36f40f8a6dda433f22c5 (diff)
downloadmetatile-f796fb0976b65620a4e6ab80e045e1be3fdeb0de.tar
metatile-f796fb0976b65620a4e6ab80e045e1be3fdeb0de.zip
Merged things together with dons changes.
darcs-hash:20070401021846-3a569-083f7d441afc41bdeef843113c1de1d3a5e40ee3
Diffstat (limited to 'XMonad.hs')
-rw-r--r--XMonad.hs13
1 files changed, 7 insertions, 6 deletions
diff --git a/XMonad.hs b/XMonad.hs
index c70ead1..c9146fe 100644
--- a/XMonad.hs
+++ b/XMonad.hs
@@ -18,7 +18,7 @@ module XMonad (
X, WorkSpace, XState(..), Layout(..), LayoutDesc(..), Disposition(..),
basicLayoutDesc, currentDesc, disposition,
runX, io, withDisplay, isRoot,
- spawn, trace, whenJust, swap
+ spawn, trace, whenJust, rot
) where
import StackSet (StackSet)
@@ -55,7 +55,7 @@ type WorkSpace = StackSet Window
-- ---------------------------------------------------------------------
--- Dispositions and Layout
+-- Display Positions and Layout
-- | Disposition. Short for 'Display Position,' it describes how much
-- of the screen a window would like to occupy, when tiled with others.
@@ -68,10 +68,11 @@ basicDisposition = Disposition (1%3) (1%3)
-- | The different layout modes
data Layout = Full | Horz | Vert
--- | 'not' for Layout.
-swap :: Layout -> Layout
-swap Full = Tile
-swap _ = Full
+-- | 'rot' for Layout.
+rot :: Layout -> Layout
+rot Full = Horz
+rot Horz = Vert
+rot Vert = Full
-- | A full description of a particular workspace's layout parameters.
data LayoutDesc = LayoutDesc { layoutType :: !Layout,