xmonad-contrib-0.13: Third party extensions for xmonad

Copyright(c) Brent Yorgey
LicenseBSD-style (see LICENSE)
Maintainer<byorgey@gmail.com>
Stabilityunstable
Portabilityportable
Safe HaskellNone
LanguageHaskell98

XMonad.Layout.Spacing

Contents

Description

Add a configurable amount of space around windows.

Synopsis

Usage

You can use this module by importing it into your ~/.xmonad/xmonad.hs file:

import XMonad.Layout.Spacing

and modifying your layoutHook as follows (for example):

layoutHook = spacing 2 $ Tall 1 (3/100) (1/2)
                     -- put a 2px space around every window

spacing :: Int -> l a -> ModifiedLayout Spacing l a #

Surround all windows by a certain number of pixels of blank space.

data Spacing a #

Instances
LayoutModifier Spacing a # 
Instance details

Defined in XMonad.Layout.Spacing

Read (Spacing a) # 
Instance details

Defined in XMonad.Layout.Spacing

Show (Spacing a) # 
Instance details

Defined in XMonad.Layout.Spacing

Methods

showsPrec :: Int -> Spacing a -> ShowS #

show :: Spacing a -> String #

showList :: [Spacing a] -> ShowS #

spacingWithEdge :: Int -> l a -> ModifiedLayout SpacingWithEdge l a #

Surround all windows by a certain number of pixels of blank space, and additionally adds the same amount of spacing around the edge of the screen.

data SpacingWithEdge a #

Instances
LayoutModifier SpacingWithEdge a # 
Instance details

Defined in XMonad.Layout.Spacing

Read (SpacingWithEdge a) # 
Instance details

Defined in XMonad.Layout.Spacing

Show (SpacingWithEdge a) # 
Instance details

Defined in XMonad.Layout.Spacing

smartSpacing :: Int -> l a -> ModifiedLayout SmartSpacing l a #

Surrounds all windows with blank space, except when the window is the only visible window on the current workspace.

data SmartSpacing a #

Instances
LayoutModifier SmartSpacing a # 
Instance details

Defined in XMonad.Layout.Spacing

Read (SmartSpacing a) # 
Instance details

Defined in XMonad.Layout.Spacing

Show (SmartSpacing a) # 
Instance details

Defined in XMonad.Layout.Spacing

smartSpacingWithEdge :: Int -> l a -> ModifiedLayout SmartSpacingWithEdge l a #

Surrounds all windows with blank space, and adds the same amount of spacing around the edge of the screen, except when the window is the only visible window on the current workspace.

data SmartSpacingWithEdge a #

Instances
LayoutModifier SmartSpacingWithEdge a # 
Instance details

Defined in XMonad.Layout.Spacing

Read (SmartSpacingWithEdge a) # 
Instance details

Defined in XMonad.Layout.Spacing

Show (SmartSpacingWithEdge a) # 
Instance details

Defined in XMonad.Layout.Spacing

data ModifySpacing #

Message to dynamically modify (e.g. increasedecreaseset) the size of the window spacing

Constructors

ModifySpacing (Int -> Int) 
Instances
Message ModifySpacing # 
Instance details

Defined in XMonad.Layout.Spacing

setSpacing :: Int -> X () #

Set spacing to given amount

incSpacing :: Int -> X () #

Increase spacing by given amount