From 6c58cab2f78c9f253d93e9b4f8fa759dc4223372 Mon Sep 17 00:00:00 2001 From: Andrea Rossato Date: Fri, 23 Nov 2007 15:10:21 +0100 Subject: MosaicAlt: haddock fixes darcs-hash:20071123141021-32816-69c5a7cdfda6e38ad780d0d6d646d5db8015d79e.gz --- XMonad/Layout/MosaicAlt.hs | 34 +++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 13 deletions(-) (limited to 'XMonad') diff --git a/XMonad/Layout/MosaicAlt.hs b/XMonad/Layout/MosaicAlt.hs index a2b9e6a..3b01892 100644 --- a/XMonad/Layout/MosaicAlt.hs +++ b/XMonad/Layout/MosaicAlt.hs @@ -38,24 +38,32 @@ import Data.Ratio import Graphics.X11.Types ( Window ) -- $usage --- You can use this module with the following in your configuration file: +-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@: -- -- > import XMonad.Layout.MosaicAlt +-- > import qualified Data.Map as M -- --- > layouts = ... --- > , Layout $ MosaicAlt M.empty --- > ... +-- Then edit your @layoutHook@ by adding the MosaicAlt layout: -- --- > keys = ... --- > , ((modMask .|. shiftMask, xK_a), withFocused (sendMessage . expandWindowAlt)) --- > , ((modMask .|. shiftMask, xK_z), withFocused (sendMessage . shrinkWindowAlt)) --- > , ((modMask .|. shiftMask, xK_s), withFocused (sendMessage . tallWindowAlt)) --- > , ((modMask .|. shiftMask, xK_d), withFocused (sendMessage . wideWindowAlt)) --- > , ((modMask .|. controlMask, xK_space), sendMessage resetAlt) +-- > myLayouts = MosaicAlt M.empty ||| Full ||| etc.. +-- > main = xmonad dafaultConfig { layoutHook = myLayouts } +-- +-- For more detailed instructions on editing the layoutHook see: +-- +-- "XMonad.Doc.Extending#Editing_the_layout_hook" +-- +-- In the key-bindings, do something like: +-- +-- > , ((modMask x .|. shiftMask , xK_a ), withFocused (sendMessage . expandWindowAlt)) +-- > , ((modMask x .|. shiftMask , xK_z ), withFocused (sendMessage . shrinkWindowAlt)) +-- > , ((modMask x .|. shiftMask , xK_s ), withFocused (sendMessage . tallWindowAlt)) +-- > , ((modMask x .|. shiftMask , xK_d ), withFocused (sendMessage . wideWindowAlt)) +-- > , ((modMask x .|. controlMask, xK_space), sendMessage resetAlt) -- > ... - --- %import XMonad.Layout.MosaicAlt --- %layout , Layout $ MosaicAlt M.empty +-- +-- For detailed instruction on editing the key binding see: +-- +-- "XMonad.Doc.Extending#Editing_key_bindings". data HandleWindowAlt = ShrinkWindowAlt Window -- cgit v1.2.3