xmonad-contrib-0.18.0.9: Community-maintained extensions for xmonad
Copyright(c) 2009 Adam Vogt
LicenseBSD-style (see xmonad/LICENSE)
Maintainervogt.adam@gmail.com
Stabilityunstable
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

XMonad.Hooks.InsertPosition

Contents

Description

Configure where new windows should be added and which window should be focused.

Synopsis

Usage

You can use this module by importing it in your xmonad.hs:

import XMonad.Hooks.InsertPosition

You then just have to add setupInsertPosition to your main function:

main = xmonad $ … $ setupInsertPosition Master Newer $ def { … }

Alternatively (i.e., you should not do this if you already have set up the above combinator), you can also directly insert insertPosition into your manageHook:

xmonad def { manageHook = insertPosition Master Newer <> myManageHook }

NOTE: You should you put the manageHooks that use doShift to take effect before insertPosition, so that the window order will be consistent. Because ManageHooks compose from right to left (like function composition .), this means that insertPosition should be the leftmost ManageHook.

setupInsertPosition :: Position -> Focus -> XConfig a -> XConfig a Source #

A combinator for setting up insertPosition.

insertPosition :: Position -> Focus -> ManageHook Source #

insertPosition. A manage hook for placing new windows. XMonad's default is the same as using: insertPosition Above Newer.

data Focus Source #

Constructors

Newer 
Older 

data Position Source #

Constructors

Master 
End 
Above 
Below