xmonad-contrib-0.13: Third party extensions for xmonad

Copyright(c) Joe Thornber <joe.thornber@gmail.com>
LicenseBSD3-style (see LICENSE)
MaintainerJoe Thornber <joe.thornber@gmail.com>
Stabilitystable
Portabilityportable
Safe HaskellNone
LanguageHaskell98

XMonad.Layout.Spiral

Contents

Description

A spiral tiling layout.

Synopsis

Usage

You can use this module with the following in your ~/.xmonad/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:

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.

data SpiralWithDir a Source #

Instances

LayoutClass SpiralWithDir a Source # 

Methods

runLayout :: Workspace WorkspaceId (SpiralWithDir a) a -> Rectangle -> X ([(a, Rectangle)], Maybe (SpiralWithDir a))

doLayout :: SpiralWithDir a -> Rectangle -> Stack a -> X ([(a, Rectangle)], Maybe (SpiralWithDir a))

pureLayout :: SpiralWithDir a -> Rectangle -> Stack a -> [(a, Rectangle)]

emptyLayout :: SpiralWithDir a -> Rectangle -> X ([(a, Rectangle)], Maybe (SpiralWithDir a))

handleMessage :: SpiralWithDir a -> SomeMessage -> X (Maybe (SpiralWithDir a))

pureMessage :: SpiralWithDir a -> SomeMessage -> Maybe (SpiralWithDir a)

description :: SpiralWithDir a -> String

Read (SpiralWithDir a) Source # 
Show (SpiralWithDir a) Source #