xmonad-contrib
Copyright(c) 2008 Justin Bogner <mail@justinbogner.com>
LicenseBSD3-style (as xmonad)
MaintainerJustin Bogner <mail@justinbogner.com>
Stabilityunstable
Portabilityunportable
Safe HaskellNone
LanguageHaskell2010

XMonad.Layout.FixedColumn

Contents

Description

A layout much like Tall, but using a multiple of a window's minimum resize amount instead of a percentage of screen to decide where to split. This is useful when you usually leave a text editor or terminal in the master pane and like it to be 80 columns wide.

Synopsis

Usage

You can use this module with the following in your xmonad.hs:

import XMonad.Layout.FixedColumn

Then edit your layoutHook by adding the FixedColumn layout:

myLayout = FixedColumn 1 20 80 10 ||| Full ||| etc..
main = xmonad def { layoutHook = myLayout }

For more detailed instructions on editing the layoutHook see the tutorial and XMonad.Doc.Extending.

data FixedColumn a Source #

A tiling mode based on preserving a nice fixed width window. Supports Shrink, Expand and IncMasterN.

Constructors

FixedColumn !Int !Int !Int !Int 

Instances

Instances details
LayoutClass FixedColumn Window Source # 
Instance details

Defined in XMonad.Layout.FixedColumn

Methods

runLayout :: Workspace WorkspaceId (FixedColumn Window) Window -> Rectangle -> X ([(Window, Rectangle)], Maybe (FixedColumn Window))

doLayout :: FixedColumn Window -> Rectangle -> Stack Window -> X ([(Window, Rectangle)], Maybe (FixedColumn Window))

pureLayout :: FixedColumn Window -> Rectangle -> Stack Window -> [(Window, Rectangle)]

emptyLayout :: FixedColumn Window -> Rectangle -> X ([(Window, Rectangle)], Maybe (FixedColumn Window))

handleMessage :: FixedColumn Window -> SomeMessage -> X (Maybe (FixedColumn Window))

pureMessage :: FixedColumn Window -> SomeMessage -> Maybe (FixedColumn Window)

description :: FixedColumn Window -> String

Read (FixedColumn a) Source # 
Instance details

Defined in XMonad.Layout.FixedColumn

Methods

readsPrec :: Int -> ReadS (FixedColumn a)

readList :: ReadS [FixedColumn a]

readPrec :: ReadPrec (FixedColumn a)

readListPrec :: ReadPrec [FixedColumn a]

Show (FixedColumn a) Source # 
Instance details

Defined in XMonad.Layout.FixedColumn

Methods

showsPrec :: Int -> FixedColumn a -> ShowS

show :: FixedColumn a -> String

showList :: [FixedColumn a] -> ShowS