xmonad-contrib-0.11.1: Third party extensions for xmonad

Portabilitynot portable
Safe HaskellNone






For windows, that do not request a particular position, a random position will be assigned. This prevents windows from piling up exactly on top of each other.





 import XMonad.Hooks.PositionStoreHooks

and adding positionStoreManageHook to your ManageHook as well as positionStoreEventHook to your event hooks. To be accurate about window sizes, the module needs to know if any decoration is in effect. This is specified with the first argument: Supply Nothing for no decoration, otherwise use 'Just defaultTheme' or similar to inform the module about the decoration theme used.

 myManageHook = positionStoreManageHook Nothing <+> manageHook defaultConfig
 myHandleEventHook = positionStoreEventHook

 main = xmonad defaultConfig { manageHook = myManageHook
                             , handleEventHook = myHandleEventHook