Copyright | (c) David Roundy <droundy@darcs.net> |
---|---|
License | BSD |
Maintainer | none |
Stability | unstable |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
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
- data ToggleLayouts lt lf a
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:
myLayout = toggleLayouts Full (Tall 1 (3/100) (1/2)) ||| etc.. main = xmonad def { layoutHook = myLayout }
For more detailed instructions on editing the layoutHook see:
To toggle between layouts add a key binding like
, ((modm .|. controlMask, xK_space), sendMessage ToggleLayout)
or a key binding like
, ((modm .|. controlMask, xK_space), sendMessage (Toggle "Full"))
For detailed instruction on editing the key binding see:
toggleLayouts :: (LayoutClass lt a, LayoutClass lf a) => lt a -> lf a -> ToggleLayouts lt lf a Source #
data ToggleLayout Source #
Instances
Read ToggleLayout Source # | |
Defined in XMonad.Layout.ToggleLayouts readsPrec :: Int -> ReadS ToggleLayout # readList :: ReadS [ToggleLayout] # | |
Show ToggleLayout Source # | |
Defined in XMonad.Layout.ToggleLayouts showsPrec :: Int -> ToggleLayout -> ShowS # show :: ToggleLayout -> String # showList :: [ToggleLayout] -> ShowS # | |
Message ToggleLayout Source # | |
Defined in XMonad.Layout.ToggleLayouts |
data ToggleLayouts lt lf a Source #