mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-03 21:51:52 -07:00
basic docs for Grid
This commit is contained in:
15
Grid.hs
15
Grid.hs
@@ -8,10 +8,13 @@
|
|||||||
-- Stability : unstable
|
-- Stability : unstable
|
||||||
-- Portability : unportable
|
-- Portability : unportable
|
||||||
--
|
--
|
||||||
|
-- A simple layout that attempts to put all windows in a square grid.
|
||||||
--
|
--
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
|
|
||||||
module XMonadContrib.Grid (
|
module XMonadContrib.Grid (
|
||||||
|
-- * Usage
|
||||||
|
-- $usage
|
||||||
Grid(..)
|
Grid(..)
|
||||||
) where
|
) where
|
||||||
|
|
||||||
@@ -19,6 +22,18 @@ import XMonad
|
|||||||
import StackSet
|
import StackSet
|
||||||
import Graphics.X11.Xlib.Types
|
import Graphics.X11.Xlib.Types
|
||||||
|
|
||||||
|
-- $usage
|
||||||
|
-- Put the following in your Config.hs file:
|
||||||
|
--
|
||||||
|
-- > import XMonadContrib.Grid
|
||||||
|
-- > ...
|
||||||
|
-- > defaultLayouts = [ ...
|
||||||
|
-- > , Layout Grid
|
||||||
|
-- > ]
|
||||||
|
|
||||||
|
-- %import XMonadContrib.Grid
|
||||||
|
-- %layout , Layout Grid
|
||||||
|
|
||||||
data Grid a = Grid deriving (Read, Show)
|
data Grid a = Grid deriving (Read, Show)
|
||||||
|
|
||||||
instance LayoutClass Grid a where
|
instance LayoutClass Grid a where
|
||||||
|
Reference in New Issue
Block a user