xmonad-contrib-0.15: Third party extensions for xmonad

Copyright | (c) 2009 Ilya Portnov
License | BSD-style (see xmonad/LICENSE)
Maintainer | Ilya Portnov <portnov84@rambler.ru>
Stability | unstable
Portability | unportable
Safe Haskell | None
Language | Haskell98

XMonad.Layout.CenteredMaster

Contents

- Usage

Description

Two layout modifiers. centerMaster places master window at center, on top of all other windows, which are managed by base layout. topRightMaster is similar, but places master window in top right corner instead of center.

Synopsis

- centerMaster :: LayoutClass l a => l a -> ModifiedLayout CenteredMaster l a
- topRightMaster :: LayoutClass l a => l a -> ModifiedLayout TopRightMaster l a
- data CenteredMaster a
- data TopRightMaster a

# Usage

This module defines two new layout modifiers: centerMaster and topRightMaster. centerMaster places master window at center of screen, on top of others. All other windows in background are managed by base layout. topRightMaster is like centerMaster, but places master window in top right corner instead of center.

Yo can use this module by adding folowing in your `xmonad.hs`:

    import XMonad.Layout.CenteredMaster

Then add layouts to your layoutHook:

    myLayoutHook = centerMaster Grid ||| ...

centerMaster :: LayoutClass l a => l a -> ModifiedLayout CenteredMaster l a Source #

Modifier that puts master window in center, other windows in background are managed by given layout

topRightMaster :: LayoutClass l a => l a -> ModifiedLayout TopRightMaster l a Source #

Modifier that puts master window in top right corner, other windows in background are managed by given layout

data CenteredMaster a Source #

Data type for LayoutModifier

Instances

LayoutModifier CenteredMaster Window Source # |

Instance details

Defined in XMonad.Layout.CenteredMaster

Methods

modifyLayout :: LayoutClass l Window => CenteredMaster Window -> Workspace WorkspaceId (l Window) Window -> Rectangle -> X ([(Window, Rectangle)], Maybe (l Window)) Source #

modifyLayoutWithUpdate :: LayoutClass l Window => CenteredMaster Window -> Workspace WorkspaceId (l Window) Window -> Rectangle -> X (([(Window, Rectangle)], Maybe (l Window)), Maybe (CenteredMaster Window)) Source #

handleMess :: CenteredMaster Window -> SomeMessage -> X (Maybe (CenteredMaster Window)) Source #

handleMessOrMaybeModifyIt :: CenteredMaster Window -> SomeMessage -> X (Maybe (Either (CenteredMaster Window) SomeMessage)) Source #

pureMess :: CenteredMaster Window -> SomeMessage -> Maybe (CenteredMaster Window) Source #

redoLayout :: CenteredMaster Window -> Rectangle -> Maybe (Stack Window) -> [(Window, Rectangle)] -> X ([(Window, Rectangle)], Maybe (CenteredMaster Window)) Source #

pureModifier :: CenteredMaster Window -> Rectangle -> Maybe (Stack Window) -> [(Window, Rectangle)] -> ([(Window, Rectangle)], Maybe (CenteredMaster Window)) Source #

hook :: CenteredMaster Window -> X () Source #

unhook :: CenteredMaster Window -> X () Source #

modifierDescription :: CenteredMaster Window -> String Source #

modifyDescription :: LayoutClass l Window => CenteredMaster Window -> l Window -> String Source #

Read (CenteredMaster a) Source # |
Instance details Defined in XMonad.Layout.CenteredMaster Methods readsPrec :: Int -> ReadS (CenteredMaster a) Source # readList :: ReadS [CenteredMaster a] Source # readPrec :: ReadPrec (CenteredMaster a) Source # readListPrec :: ReadPrec [CenteredMaster a] Source #
Show (CenteredMaster a) Source # |
Instance details Defined in XMonad.Layout.CenteredMaster Methods showsPrec :: Int -> CenteredMaster a -> ShowS Source # show :: CenteredMaster a -> String Source # showList :: [CenteredMaster a] -> ShowS Source #

data TopRightMaster a Source #

Instances

LayoutModifier TopRightMaster Window Source # |

Instance details

Defined in XMonad.Layout.CenteredMaster

Methods

modifyLayout :: LayoutClass l Window => TopRightMaster Window -> Workspace WorkspaceId (l Window) Window -> Rectangle -> X ([(Window, Rectangle)], Maybe (l Window)) Source #

modifyLayoutWithUpdate :: LayoutClass l Window => TopRightMaster Window -> Workspace WorkspaceId (l Window) Window -> Rectangle -> X (([(Window, Rectangle)], Maybe (l Window)), Maybe (TopRightMaster Window)) Source #

handleMess :: TopRightMaster Window -> SomeMessage -> X (Maybe (TopRightMaster Window)) Source #

handleMessOrMaybeModifyIt :: TopRightMaster Window -> SomeMessage -> X (Maybe (Either (TopRightMaster Window) SomeMessage)) Source #

pureMess :: TopRightMaster Window -> SomeMessage -> Maybe (TopRightMaster Window) Source #

redoLayout :: TopRightMaster Window -> Rectangle -> Maybe (Stack Window) -> [(Window, Rectangle)] -> X ([(Window, Rectangle)], Maybe (TopRightMaster Window)) Source #

pureModifier :: TopRightMaster Window -> Rectangle -> Maybe (Stack Window) -> [(Window, Rectangle)] -> ([(Window, Rectangle)], Maybe (TopRightMaster Window)) Source #

hook :: TopRightMaster Window -> X () Source #

unhook :: TopRightMaster Window -> X () Source #

modifierDescription :: TopRightMaster Window -> String Source #

modifyDescription :: LayoutClass l Window => TopRightMaster Window -> l Window -> String Source #

Read (TopRightMaster a) Source # |
Instance details Defined in XMonad.Layout.CenteredMaster Methods readsPrec :: Int -> ReadS (TopRightMaster a) Source # readList :: ReadS [TopRightMaster a] Source # readPrec :: ReadPrec (TopRightMaster a) Source # readListPrec :: ReadPrec [TopRightMaster a] Source #
Show (TopRightMaster a) Source # |
Instance details Defined in XMonad.Layout.CenteredMaster Methods showsPrec :: Int -> TopRightMaster a -> ShowS Source # show :: TopRightMaster a -> String Source # showList :: [TopRightMaster a] -> ShowS Source #