From c1d14f8145d7ee929c9c72eb05eb41092641e519 Mon Sep 17 00:00:00 2001 From: Andrea Rossato Date: Fri, 23 Nov 2007 15:16:57 +0100 Subject: MagicFocus: haddock docs darcs-hash:20071123141657-32816-e51886b62eb8176b80c88d6591013fec8420e358.gz --- XMonad/Layout/MagicFocus.hs | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'XMonad/Layout/MagicFocus.hs') diff --git a/XMonad/Layout/MagicFocus.hs b/XMonad/Layout/MagicFocus.hs index 57e5b7a..0c4c6b4 100644 --- a/XMonad/Layout/MagicFocus.hs +++ b/XMonad/Layout/MagicFocus.hs @@ -24,13 +24,19 @@ import XMonad import XMonad.StackSet -- $usage +-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@: +-- -- > import XMonad.Layout.MagicFocus --- > layouts = [ Layout $ MagicFocus tiled , Layout $ MagicFocus $ Mirror tiled ] - --- %import XMonad.Layout.MagicFocus --- %layout , Layout $ MagicFocus tiled --- %layout , Layout $ MagicFocus $ Mirror tiled - +-- +-- Then edit your @layoutHook@ by adding the MagicFocus layout +-- modifier: +-- +-- > myLayouts = MagicFocus (Tall 1 (3/100) (1/2)) ||| Full ||| etc.. +-- > main = xmonad dafaultConfig { layoutHook = myLayouts } +-- +-- For more detailed instructions on editing the layoutHook see: +-- +-- "XMonad.Doc.Extending#Editing_the_layout_hook" data MagicFocus l a = MagicFocus (l a) deriving ( Show , Read ) -- cgit v1.2.3