xmonad-contrib-0.13: Third party extensions for xmonad

Copyright(c) Jan Vornberger 2009, Alejandro Serrano 2010
LicenseBSD3-style (see LICENSE)
Maintainerjan.vornberger@informatik.uni-oldenburg.de
Stabilityunstable
Portabilitynot portable
Safe HaskellNone
LanguageHaskell98

XMonad.Layout.Minimize

Contents

Description

Makes it possible to minimize windows, temporarily removing them from the layout until they are restored.

Synopsis

Usage

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

import XMonad.Layout.Minimize

Then edit your layoutHook by adding the Minimize layout modifier:

myLayout = minimize (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_m     ), withFocused minimizeWindow)
       , ((modm .|. shiftMask, xK_m     ), sendMessage RestoreNextMinimizedWin)

The first action will minimize the focused window, while the second one will restore the next minimized window.

For detailed instruction on editing the key binding see:

XMonad.Doc.Extending.

The module is designed to work together with XMonad.Layout.BoringWindows so that minimized windows will be skipped over when switching the focused window with the keyboard. Include boringWindows in your layout hook and see the documentation of XMonad.Layout.BoringWindows on how to modify your keybindings.

Also see XMonad.Hooks.Minimize if you want to be able to minimize and restore windows from your taskbar.

minimize :: LayoutClass l Window => l Window -> ModifiedLayout Minimize l Window Source #

minimizeWindow :: Window -> X () Source #

data Minimize a Source #

Instances

LayoutModifier Minimize Window Source # 

Methods

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

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

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

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

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

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

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

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

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

modifierDescription :: Minimize Window -> String Source #

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

Read (Minimize a) Source # 
Show (Minimize a) Source # 

Methods

showsPrec :: Int -> Minimize a -> ShowS #

show :: Minimize a -> String #

showList :: [Minimize a] -> ShowS #