xmonad-contrib-0.18.0.9: Community-maintained extensions for xmonad
Copyright(c) 2007 Andrea Rossato
LicenseBSD-style (see xmonad/LICENSE)
Maintainerandrea.rossato@unibz.it
Stabilityunstable
Portabilityunportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

XMonad.Actions.MouseResize

Contents

Description

A layout modifier to resize windows with the mouse by grabbing the window's lower right corner.

This module must be used together with XMonad.Layout.WindowArranger.

Synopsis

Usage:

Usually this module is used to create layouts, but you can also use it to resize windows in any layout, together with the XMonad.Layout.WindowArranger. For usage example see XMonad.Layout.SimpleFloat or XMonad.Layout.DecorationMadness.

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

import XMonad.Actions.MouseResize
import XMonad.Layout.WindowArranger

Then edit your layoutHook by modifying a given layout:

myLayout = mouseResize $ windowArrange $ layoutHook def

and then:

main = xmonad def { layoutHook = myLayout }

For more detailed instructions on editing the layoutHook see the tutorial and XMonad.Doc.Extending.

newtype MouseResize a Source #

Constructors

MR [((a, Rectangle), Maybe a)] 

Instances

Instances details
LayoutModifier MouseResize Window Source # 
Instance details

Defined in XMonad.Actions.MouseResize

Read (MouseResize a) Source # 
Instance details

Defined in XMonad.Actions.MouseResize

Show (MouseResize a) Source # 
Instance details

Defined in XMonad.Actions.MouseResize