xmonad-contrib-0.16: Third party extensions for xmonad

Copyright | (c) 2007 James Webb
License | BSD3-style (see LICENSE)
Maintainer | xmonad#jwebb,sygneca,com
Stability | unstable
Portability | unportable
Safe Haskell | None
Language | Haskell98

XMonad.Layout.Maximize

Contents

- Usage

Description

Temporarily yanks the focused window out of the layout to mostly fill the screen.

Synopsis

- maximize :: LayoutClass l Window => l Window -> ModifiedLayout Maximize l Window
- maximizeWithPadding :: LayoutClass l Window => Dimension -> l Window -> ModifiedLayout Maximize l Window
- maximizeRestore :: Window -> MaximizeRestore
- data Maximize a
- data MaximizeRestore

# Usage

You can use this module with the following in your `~/.xmonad/xmonad.hs`:

    import XMonad.Layout.Maximize

Then edit your `layoutHook` by adding the Maximize layout modifier:

    myLayout = maximize (Tall 1 (3/100) (1/2)) ||| Full ||| etc..)
    main = xmonad def { layoutHook = myLayout }

Or, if you want to control the amount of padding placed around the maximized window:

    myLayout = maximizeWithPadding 10 (Tall 1 (3/100) (1/2)) ||| Full ||| etc..)
    main = xmonad def { layoutHook = myLayout }

For more detailed instructions on editing the layoutHook see:

XMonad.Doc.Extending

In the key-bindings, do something like:

           , ((modm, xK_backslash), withFocused (sendMessage . maximizeRestore))
           ...

For detailed instruction on editing the key binding see:

XMonad.Doc.Extending.

maximize :: LayoutClass l Window => l Window -> ModifiedLayout Maximize l Window Source #

maximizeWithPadding :: LayoutClass l Window => Dimension -> l Window -> ModifiedLayout Maximize l Window Source #

Like `maximize`, but allows you to specify the amount of padding placed around the maximized window.

maximizeRestore :: Window -> MaximizeRestore Source #

data Maximize a Source #

#### Instances

Instances details

LayoutModifier Maximize Window Source # |

Instance details

Defined in XMonad.Layout.Maximize

Methods

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

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

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

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

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

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

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

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

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

modifierDescription :: Maximize Window -> String Source #

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

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

data MaximizeRestore Source #

#### Instances

Instances details

Eq MaximizeRestore Source # |
Instance details Defined in XMonad.Layout.Maximize Methods (==) :: MaximizeRestore -> MaximizeRestore -> Bool # (/=) :: MaximizeRestore -> MaximizeRestore -> Bool #
Message MaximizeRestore Source # |
Instance details Defined in XMonad.Layout.Maximize