mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-07-31 20:21:51 -07:00
Named: haddock fixes
This commit is contained in:
@@ -10,6 +10,8 @@
|
|||||||
-- Stability : unstable
|
-- Stability : unstable
|
||||||
-- Portability : unportable
|
-- Portability : unportable
|
||||||
--
|
--
|
||||||
|
-- A module for assigning a name to a given layout.
|
||||||
|
--
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
|
|
||||||
module XMonad.Layout.Named (
|
module XMonad.Layout.Named (
|
||||||
@@ -21,13 +23,19 @@ module XMonad.Layout.Named (
|
|||||||
import XMonad
|
import XMonad
|
||||||
|
|
||||||
-- $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.Named
|
-- > import XMonad.Layout.Named
|
||||||
--
|
--
|
||||||
-- and change the name of a given layout by
|
-- Then edit your @layoutHook@ by adding the Named layout modifier
|
||||||
|
-- to some layout:
|
||||||
--
|
--
|
||||||
-- > layout = Named "real big" Full ||| ...
|
-- > myLayouts = Named "real big" Full ||| etc..
|
||||||
|
-- > main = xmonad dafaultConfig { layoutHook = myLayouts }
|
||||||
|
--
|
||||||
|
-- For more detailed instructions on editing the layoutHook see:
|
||||||
|
--
|
||||||
|
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||||
|
|
||||||
data Named l a = Named String (l a) deriving ( Read, Show )
|
data Named l a = Named String (l a) deriving ( Read, Show )
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user