Copyright | (c) 2009 Adam Vogt |
---|---|
License | BSD-style (see xmonad/LICENSE) |
Maintainer | vogt.adam@gmail.com |
Stability | unstable |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Configure where new windows should be added and which window should be focused.
Usage
You can use this module with the following in your ~/.xmonad/xmonad.hs
:
import XMonad.Hooks.InsertPosition xmonad def { manageHook = insertPosition Master Newer <> myManageHook }
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.
insertPosition :: Position -> Focus -> ManageHook Source #
insertPosition. A manage hook for placing new windows. XMonad's default is
the same as using: insertPosition Above Newer
.