mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-11 10:12:15 -07:00
Maximize: haddock fixes
This commit is contained in:
@@ -29,20 +29,27 @@ import XMonad.Layout.LayoutModifier
|
|||||||
import Data.List ( partition )
|
import Data.List ( partition )
|
||||||
|
|
||||||
-- $usage
|
-- $usage
|
||||||
-- You can use this module with the following in your Config.hs file:
|
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@:
|
||||||
--
|
--
|
||||||
-- > import XMonad.Layout.Maximize
|
-- > import XMonad.Layout.Maximize
|
||||||
--
|
--
|
||||||
-- > layouts = ...
|
-- Then edit your @layoutHook@ by adding the Maximize layout modifier:
|
||||||
-- > , Layout $ maximize $ tiled ...
|
--
|
||||||
|
-- > myLayouts = maximize (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"
|
||||||
|
--
|
||||||
|
-- In the key-bindings, do something like:
|
||||||
|
--
|
||||||
|
-- > , ((modMask x, xK_backslash), withFocused (sendMessage . maximizeRestore))
|
||||||
-- > ...
|
-- > ...
|
||||||
--
|
--
|
||||||
-- > keys = ...
|
-- For detailed instruction on editing the key binding see:
|
||||||
-- > , ((modMask, xK_backslash), withFocused (sendMessage . maximizeRestore))
|
--
|
||||||
-- > ...
|
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
||||||
|
|
||||||
-- %import XMonad.Layout.Maximize
|
|
||||||
-- %layout , Layout $ maximize $ tiled
|
|
||||||
|
|
||||||
data Maximize a = Maximize (Maybe Window) deriving ( Read, Show )
|
data Maximize a = Maximize (Maybe Window) deriving ( Read, Show )
|
||||||
maximize :: LayoutClass l Window => l Window -> ModifiedLayout Maximize l Window
|
maximize :: LayoutClass l Window => l Window -> ModifiedLayout Maximize l Window
|
||||||
|
Reference in New Issue
Block a user