xmonad-contrib-0.18.1: Community-maintained 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 | Haskell2010

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.

You can use this module by adding following 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 #

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 #

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

data CenteredMaster a #

Data type for LayoutModifier

#### Instances

Instances details

LayoutModifier CenteredMaster Window # |

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)) #

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

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

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

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

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

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

hook :: CenteredMaster Window -> X () #

unhook :: CenteredMaster Window -> X () #

modifierDescription :: CenteredMaster Window -> String #

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

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

data TopRightMaster a #

#### Instances

Instances details

LayoutModifier TopRightMaster Window # |

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)) #

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

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

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

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

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

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

hook :: TopRightMaster Window -> X () #

unhook :: TopRightMaster Window -> X () #

modifierDescription :: TopRightMaster Window -> String #

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

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