Copyright | (c) Joe Thornber <joe.thornber@gmail.com> |
---|---|
License | BSD3-style (see LICENSE) |
Maintainer | Joe Thornber <joe.thornber@gmail.com> |
Stability | stable |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
A spiral tiling layout.
Synopsis
- spiral :: Rational -> SpiralWithDir a
- spiralWithDir :: Direction -> Rotation -> Rational -> SpiralWithDir a
- data Rotation
- data Direction
- data SpiralWithDir a
Usage
You can use this module with the following in your xmonad.hs
:
import XMonad.Layout.Spiral
Then edit your layoutHook
by adding the Spiral layout:
myLayout = spiral (6/7) ||| etc.. main = xmonad def { layoutHook = myLayout }
For more detailed instructions on editing the layoutHook see the tutorial and XMonad.Doc.Extending.
spiral :: Rational -> SpiralWithDir a Source #
A spiral layout. The parameter controls the size ratio between successive windows in the spiral. Sensible values range from 0 up to the aspect ratio of your monitor (often 4/3).
By default, the spiral is counterclockwise, starting to the east.
See also spiralWithDir
.
spiralWithDir :: Direction -> Rotation -> Rational -> SpiralWithDir a Source #
Create a spiral layout, specifying the starting cardinal direction, the spiral direction (clockwise or counterclockwise), and the size ratio.
Instances
Enum Direction Source # | |
Defined in XMonad.Layout.Spiral succ :: Direction -> Direction # pred :: Direction -> Direction # fromEnum :: Direction -> Int # enumFrom :: Direction -> [Direction] # enumFromThen :: Direction -> Direction -> [Direction] # enumFromTo :: Direction -> Direction -> [Direction] # enumFromThenTo :: Direction -> Direction -> Direction -> [Direction] # | |
Read Direction Source # | |
Show Direction Source # | |
Eq Direction Source # | |
data SpiralWithDir a Source #