xmonad-contrib-0.17.1: Community-maintained extensions for xmonad

Copyright | (c) David Roundy <droundy@darcs.net>
License | BSD3-style (see LICENSE)
Maintainer | none
Stability | unstable
Portability | unportable
Safe Haskell | Safe-Inferred
Language | Haskell2010

XMonad.Layout.Square

Contents

- Usage

Description

A layout that splits the screen into a square area and the rest of the screen. This is probably only ever useful in combination with XMonad.Layout.Combo. It sticks one window in a square region, and makes the rest of the windows live with what's left (in a full-screen sense).

Synopsis

- data Square a = Square

# Usage

You can use this module with the following in your `~/.xmonad/xmonad.hs` file:

      import XMonad.Layout.Square

An example layout using square together with XMonad.Layout.Combo to make the very last area square:

    , combo (combo (mirror $ twoPane 0.03 0.85),1)] (twoPane 0.03 0.5) )
                   [(twoPane 0.03 0.2,1),(combo [(twoPane 0.03 0.8,1),(square,1)]
            [(tabbed,3),(tabbed,30),(tabbed,1),(tabbed,1)]

data Square a Source #

Constructors

Square |

#### Instances

Instances details

LayoutClass Square a Source # |

Instance details

Defined in XMonad.Layout.Square

Methods

runLayout :: Workspace WorkspaceId (Square a) a -> Rectangle -> X ([(a, Rectangle)], Maybe (Square a)) Source #

doLayout :: Square a -> Rectangle -> Stack a -> X ([(a, Rectangle)], Maybe (Square a)) Source #

pureLayout :: Square a -> Rectangle -> Stack a -> [(a, Rectangle)] Source #

emptyLayout :: Square a -> Rectangle -> X ([(a, Rectangle)], Maybe (Square a)) Source #

handleMessage :: Square a -> SomeMessage -> X (Maybe (Square a)) Source #

pureMessage :: Square a -> SomeMessage -> Maybe (Square a) Source #

description :: Square a -> String Source #

Read (Square a) Source # |
Instance details Defined in XMonad.Layout.Square Methods readsPrec :: Int -> ReadS (Square a) Source # readList :: ReadS [Square a] Source # readPrec :: ReadPrec (Square a) Source # readListPrec :: ReadPrec [Square a] Source #
Show (Square a) Source # |
Instance details Defined in XMonad.Layout.Square Methods showsPrec :: Int -> Square a -> ShowS Source # show :: Square a -> String Source # showList :: [Square a] -> ShowS Source #