xmonad-contrib-0.7: Third party extensions for xmonadContentsIndex
XMonad.Layout.ToggleLayouts
Portabilityportable
Stabilityunstable
MaintainerDavid Roundy <droundy@darcs.net>
Contents
Usage
Description
A module to toggle between two layouts.
Synopsis
toggleLayouts :: (LayoutClass lt a, LayoutClass lf a) => lt a -> lf a -> ToggleLayouts lt lf a
data ToggleLayout
= ToggleLayout
| Toggle String
Usage

You can use this module with the following in your ~/.xmonad/xmonad.hs:

 import XMonad.Layout.ToggleLayouts

Then edit your layoutHook by adding the ToggleLayouts layout:

 myLayouts = toggleLayouts Full (Tall 1 (3/100) (1/2)) ||| etc..
 main = xmonad defaultConfig { layoutHook = myLayouts }

For more detailed instructions on editing the layoutHook see:

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 x .|. controlMask, xK_space), sendMessage (Toggle "Full"))

For detailed instruction on editing the key binding see:

XMonad.Doc.Extending#Editing_key_bindings.

toggleLayouts :: (LayoutClass lt a, LayoutClass lf a) => lt a -> lf a -> ToggleLayouts lt lf a
data ToggleLayout
Constructors
ToggleLayout
Toggle String
show/hide Instances
Produced by Haddock version 0.8