summaryrefslogtreecommitdiffstats
path: root/XMonad.hs
diff options
context:
space:
mode:
Diffstat (limited to 'XMonad.hs')
-rw-r--r--XMonad.hs7
1 files changed, 6 insertions, 1 deletions
diff --git a/XMonad.hs b/XMonad.hs
index 28c9c6a..7ffab6c 100644
--- a/XMonad.hs
+++ b/XMonad.hs
@@ -17,7 +17,7 @@
module XMonad (
X, WorkSpace, XState(..), Layout(..), LayoutDesc(..),
runX, io, withDisplay, isRoot,
- spawn, trace, whenJust
+ spawn, trace, whenJust, swap
) where
import StackSet (StackSet)
@@ -53,6 +53,11 @@ type WorkSpace = StackSet Window
-- | The different layout modes
data Layout = Full | Tile
+-- | 'not' for Layout.
+swap :: Layout -> Layout
+swap Full = Tile
+swap _ = Full
+
-- | A full description of a particular workspace's layout parameters.
data LayoutDesc = LayoutDesc { layoutType :: !Layout
, tileFraction :: !Rational