mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 03:20:21 -07:00
MagicFocus: haddock docs
This commit is contained in:
parent
4e047d2666
commit
8f641ff025
@ -24,13 +24,19 @@ import XMonad
|
|||||||
import XMonad.StackSet
|
import XMonad.StackSet
|
||||||
|
|
||||||
-- $usage
|
-- $usage
|
||||||
|
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@:
|
||||||
|
--
|
||||||
-- > import XMonad.Layout.MagicFocus
|
-- > import XMonad.Layout.MagicFocus
|
||||||
-- > layouts = [ Layout $ MagicFocus tiled , Layout $ MagicFocus $ Mirror tiled ]
|
--
|
||||||
|
-- Then edit your @layoutHook@ by adding the MagicFocus layout
|
||||||
-- %import XMonad.Layout.MagicFocus
|
-- modifier:
|
||||||
-- %layout , Layout $ MagicFocus tiled
|
--
|
||||||
-- %layout , Layout $ MagicFocus $ Mirror tiled
|
-- > 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 )
|
data MagicFocus l a = MagicFocus (l a) deriving ( Show , Read )
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user