mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 11:30:22 -07:00
Spiral: haddock docs
This commit is contained in:
parent
3885445b26
commit
de23c9ab0d
@ -30,14 +30,19 @@ import XMonad.Layouts
|
||||
import XMonad.StackSet ( integrate )
|
||||
|
||||
-- $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.Spiral
|
||||
-- > import Data.Ratio
|
||||
--
|
||||
-- > layouts = [ ..., Layout $ spiral (1 % 1), ... ]
|
||||
|
||||
-- %import XMonad.Layout.Spiral
|
||||
-- %layout , Layout $ spiral (1 % 1)
|
||||
-- Then edit your @layoutHook@ by adding the Spiral layout:
|
||||
--
|
||||
-- > myLayouts = spiral (1 % 1) ||| etc..
|
||||
-- > main = xmonad dafaultConfig { layoutHook = myLayouts }
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
|
||||
fibs :: [Integer]
|
||||
fibs = 1 : 1 : zipWith (+) fibs (tail fibs)
|
||||
|
Loading…
x
Reference in New Issue
Block a user