Add Layout.Simplest, the simplest layout

This commit is contained in:
Andrea Rossato 2008-01-25 15:20:15 +00:00
parent 6a6a09a991
commit 82a62c856f
2 changed files with 42 additions and 0 deletions

41
XMonad/Layout/Simplest.hs Normal file
View File

@ -0,0 +1,41 @@
{-# LANGUAGE TypeSynonymInstances, MultiParamTypeClasses #-}
-----------------------------------------------------------------------------
-- |
-- Module : XMonad.Layout.Simplest
-- Copyright : (c) 2007 Andrea Rossato
-- License : BSD-style (see xmonad/LICENSE)
--
-- Maintainer : andrea.rossato@unibz.it
-- Stability : unstable
-- Portability : unportable
--
-- A very simple layout. The simplest, afaik.
-----------------------------------------------------------------------------
module XMonad.Layout.Simplest
( -- * Usage:
-- $usage
Simplest (..)
) where
import XMonad
import qualified XMonad.StackSet as S
-- $usage
-- You can use this module with the following in your
-- @~\/.xmonad\/xmonad.hs@:
--
-- > import XMonad.Layout.Simplest
--
-- Then edit your @layoutHook@ by adding the Simplest layout:
--
-- > myLayouts = Simplest ||| Full ||| etc..
-- > main = xmonad defaultConfig { layoutHook = myLayouts }
--
-- For more detailed instructions on editing the layoutHook see:
--
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
data Simplest a = Simplest deriving (Show, Read)
instance LayoutClass Simplest Window where
pureLayout Simplest rec (S.Stack w l r) = zip (w : reverse l ++ r) (repeat rec)

View File

@ -117,6 +117,7 @@ library
XMonad.Layout.Reflect XMonad.Layout.Reflect
XMonad.Layout.ResizableTile XMonad.Layout.ResizableTile
XMonad.Layout.Roledex XMonad.Layout.Roledex
XMonad.Layout.Simplest
XMonad.Layout.Spiral XMonad.Layout.Spiral
XMonad.Layout.Square XMonad.Layout.Square
XMonad.Layout.ShowWName XMonad.Layout.ShowWName