diff options
Diffstat (limited to 'src/Internal/Layout.hs')
| -rw-r--r-- | src/Internal/Layout.hs | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/src/Internal/Layout.hs b/src/Internal/Layout.hs index 8613284..d883d18 100644 --- a/src/Internal/Layout.hs +++ b/src/Internal/Layout.hs @@ -1,6 +1,8 @@ -{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances #-} +{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances, KindSignatures, DataKinds, GADTs, RankNTypes #-} module Internal.Layout where +import GHC.TypeLits + import Internal.CornerLayout (Corner(..)) import Control.Arrow (second) import XMonad.Hooks.ManageDocks @@ -22,6 +24,8 @@ import XMonad import XMonad.Core import XMonad.Layout.NoBorders (smartBorders, noBorders) +import Internal.LayoutZipper + import qualified Data.Map as M import qualified XMonad.StackSet as W @@ -33,15 +37,17 @@ myLayout = ModifiedLayout (Flippable False) $ ModifiedLayout (HFlippable False) $ ModifiedLayout (Rotateable False) $ - spiral (6/7) ||| - (Corner (3/4) (3/100) :: Corner Window) ||| - ModifyDescription TallDescriptionModifier (Tall 1 (3/100) (1/2)) ||| - ModifyDescription ThreeColDescMod (ThreeCol 1 (3/100) (1/2)) ||| - Full ||| - Grid ||| - Dishes 2 (1/6) ||| - (MosaicAlt M.empty :: MosaicAlt Window) ||| - D.Dwindle D.R D.CW 1.5 1.1 + layoutZipper $ + spiral (6/7) |: + (Corner (3/4) (3/100) :: Corner Window) |: + ModifyDescription TallDescriptionModifier (Tall 1 (3/100) (1/2)) |: + ModifyDescription ThreeColDescMod (ThreeCol 1 (3/100) (1/2)) |: + Full |: + Grid |: + Dishes 2 (1/6) |: + (MosaicAlt M.empty :: MosaicAlt Window) |: + D.Dwindle D.R D.CW 1.5 1.1 |: + nil data ModifyDescription m l a = ModifyDescription m (l a) deriving (Show, Read) |