mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 03:20:21 -07:00
LayoutHints: haddock fixes
This commit is contained in:
parent
ec0d5129a3
commit
1e35714e1e
@ -27,12 +27,19 @@ import XMonad.Layout.LayoutModifier
|
||||
import Control.Monad.Reader ( asks )
|
||||
|
||||
-- $usage
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Layout.LayoutHints
|
||||
-- > layouts = [ layoutHints tiled , layoutHints $ Mirror tiled ]
|
||||
|
||||
-- %import XMonad.Layout.LayoutHints
|
||||
-- %layout , layoutHints $ tiled
|
||||
-- %layout , layoutHints $ Mirror tiled
|
||||
--
|
||||
-- Then edit your @layoutHook@ by adding the LayoutHints layout modifier
|
||||
-- to some layout:
|
||||
--
|
||||
-- > myLayouts = layoutHints (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"
|
||||
|
||||
layoutHints :: (LayoutClass l a) => l a -> ModifiedLayout LayoutHints l a
|
||||
layoutHints = ModifiedLayout LayoutHints
|
||||
|
Loading…
x
Reference in New Issue
Block a user