diff options
Diffstat (limited to 'XMonad.hs')
-rw-r--r-- | XMonad.hs | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |