xmonad-contrib-0.16.999: Community-maintained extensions extensions for xmonad
Copyright(c) 2009 Adam Vogt
(c) 2009 Max Rabkin -- wrote limitSelect
LicenseBSD-style (see xmonad/LICENSE)
Maintainervogt.adam@gmail.com
Stabilityunstable
Portabilityunportable
Safe HaskellNone
LanguageHaskell98

XMonad.Layout.LimitWindows

Description

A layout modifier that limits the number of windows that can be shown. See XMonad.Layout.Minimize for manually setting hidden windows.

Synopsis

Usage

To use this module, add the following import to ~/.xmonad/xmonad.hs:

import XMonad.Layout.LimitWindows
myLayout = limitWindows 6 $ Tall 1 0.03 0.5 ||| Full ||| RandomOtherLayout...
main = xmonad def { layoutHook = myLayout }

You may also be interested in dynamically changing the number dynamically, by binding keys to the increaseLimit, decreaseLimit, or setLimit actions.

For detailed instructions on editing your key bindings, see XMonad.Doc.Extending.

See also boringAuto for keybindings that skip the hidden windows.

Layout Modifiers

limitWindows :: Int -> l a -> ModifiedLayout LimitWindows l a Source #

Only display the first n windows.

limitSlice :: Int -> l a -> ModifiedLayout LimitWindows l a Source #

Only display n windows around the focused window. This makes sense with layouts that arrange windows linearily, like Accordion.

limitSelect :: Int -> Int -> l a -> ModifiedLayout Selection l a Source #

Only display the first m windows and r others. The IncMasterN message will change m, as well as passing it onto the underlying layout.

Change the number of windows

setLimit :: Int -> X () Source #

Types

data LimitWindows a Source #

Instances

Instances details
LayoutModifier LimitWindows a Source # 
Instance details

Defined in XMonad.Layout.LimitWindows

Read (LimitWindows a) Source # 
Instance details

Defined in XMonad.Layout.LimitWindows

Show (LimitWindows a) Source # 
Instance details

Defined in XMonad.Layout.LimitWindows

data Selection a Source #

Instances

Instances details
LayoutModifier Selection a Source # 
Instance details

Defined in XMonad.Layout.LimitWindows

Eq (Selection a) Source # 
Instance details

Defined in XMonad.Layout.LimitWindows

Methods

(==) :: Selection a -> Selection a -> Bool #

(/=) :: Selection a -> Selection a -> Bool #

Read (Selection a) Source # 
Instance details

Defined in XMonad.Layout.LimitWindows

Show (Selection a) Source # 
Instance details

Defined in XMonad.Layout.LimitWindows