aboutsummaryrefslogtreecommitdiffstats
path: root/XMonad/Layout
diff options
context:
space:
mode:
authorAndrea Rossato <andrea.rossato@unibz.it>2007-11-23 15:29:34 +0100
committerAndrea Rossato <andrea.rossato@unibz.it>2007-11-23 15:29:34 +0100
commitabd3205421ad6127ca5eaebef679294089d2e8fe (patch)
treec841d1937f59f6f42aa5d01cd8d0c782c7fd9547 /XMonad/Layout
parent08cb6caca1db58abd5e0c08f639cf276ba8078c8 (diff)
downloadXMonadContrib-abd3205421ad6127ca5eaebef679294089d2e8fe.tar.gz
XMonadContrib-abd3205421ad6127ca5eaebef679294089d2e8fe.tar.xz
XMonadContrib-abd3205421ad6127ca5eaebef679294089d2e8fe.zip
ToggleLayout: haddock fixes
darcs-hash:20071123142934-32816-f1fc9400a7b63f4b8325cebf58231a25b2247ee9.gz
Diffstat (limited to 'XMonad/Layout')
-rw-r--r--XMonad/Layout/ToggleLayouts.hs25
1 files changed, 17 insertions, 8 deletions
diff --git a/XMonad/Layout/ToggleLayouts.hs b/XMonad/Layout/ToggleLayouts.hs
index 51736b1..d0ff557 100644
--- a/XMonad/Layout/ToggleLayouts.hs
+++ b/XMonad/Layout/ToggleLayouts.hs
@@ -11,7 +11,7 @@
-- Stability : unstable
-- Portability : portable
--
--- A module for writing easy Layouts
+-- A module to toggle between two layouts.
-----------------------------------------------------------------------------
module XMonad.Layout.ToggleLayouts (
@@ -23,21 +23,30 @@ module XMonad.Layout.ToggleLayouts (
import XMonad
-- $usage
--- Use toggleLayouts to toggle between two layouts.
+-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@:
--
--- import XMonad.Layout.ToggleLayouts
+-- > import XMonad.Layout.ToggleLayouts
--
--- and add to your layoutHook something like
+-- Then edit your @layoutHook@ by adding the ToggleLayouts layout:
--
--- > layoutHook = Layout $ toggleLayouts (noBorders Full) $ Select layouts
+-- > myLayouts = toggleLayouts Full (Tall 1 (3/100) (1/2)) ||| etc..
+-- > main = xmonad dafaultConfig { layoutHook = myLayouts }
--
--- and a key binding like
+-- For more detailed instructions on editing the layoutHook see:
--
--- > , ((modMask .|. controlMask, xK_space), sendMessage ToggleLayout)
+-- "XMonad.Doc.Extending#Editing_the_layout_hook"
+--
+-- To toggle between layouts add a key binding like
+--
+-- > , ((modMask x .|. controlMask, xK_space), sendMessage ToggleLayout)
--
-- or a key binding like
--
--- > , ((modMask .|. controlMask, xK_space), sendMessage (Toggle "Full"))
+-- > , ((modMask x .|. controlMask, xK_space), sendMessage (Toggle "Full"))
+--
+-- For detailed instruction on editing the key binding see:
+--
+-- "XMonad.Doc.Extending#Editing_key_bindings".
data ToggleLayouts lt lf a = ToggleLayouts Bool (lt a) (lf a) deriving (Read,Show)
data ToggleLayout = ToggleLayout | Toggle String deriving (Read,Show,Typeable)