aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrea Rossato <andrea.rossato@unibz.it>2007-11-23 15:10:21 +0100
committerAndrea Rossato <andrea.rossato@unibz.it>2007-11-23 15:10:21 +0100
commit6c58cab2f78c9f253d93e9b4f8fa759dc4223372 (patch)
treed159fae19636877b0ccb916602de07c0609b04d7
parent50661d1123bb133088480c409a141280949ced71 (diff)
downloadXMonadContrib-6c58cab2f78c9f253d93e9b4f8fa759dc4223372.tar.gz
XMonadContrib-6c58cab2f78c9f253d93e9b4f8fa759dc4223372.tar.xz
XMonadContrib-6c58cab2f78c9f253d93e9b4f8fa759dc4223372.zip
MosaicAlt: haddock fixes
darcs-hash:20071123141021-32816-69c5a7cdfda6e38ad780d0d6d646d5db8015d79e.gz
-rw-r--r--XMonad/Layout/MosaicAlt.hs34
1 files changed, 21 insertions, 13 deletions
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