xmonad-contrib
Copyright(c) MATSUYAMA Tomohiro <t.matsuyama.pub@gmail.com>
LicenseBSD-style (see LICENSE)
MaintainerMATSUYAMA Tomohiro <t.matsuyama.pub@gmail.com>
Stabilityunstable
Portabilityunportable
Safe HaskellNone
LanguageHaskell2010

XMonad.Layout.ResizableTile

Contents

Description

More useful tiled layout that allows you to change a width/height of window.

Synopsis

Usage

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

import XMonad.Layout.ResizableTile

Then edit your layoutHook by adding the ResizableTile layout:

myLayout =  ResizableTall 1 (3/100) (1/2) [] ||| etc..
main = xmonad def { layoutHook = myLayout }

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

You may also want to add the following key bindings:

, ((modm,               xK_a), sendMessage MirrorShrink)
, ((modm,               xK_z), sendMessage MirrorExpand)

For detailed instruction on editing the key binding see:

the tutorial.

data ResizableTall a Source #

Constructors

ResizableTall 

Fields

  • _nmaster :: Int

    number of master windows

  • _delta :: Rational

    change when resizing by Shrink, Expand, MirrorShrink, MirrorExpand

  • _frac :: Rational

    width of master

  • _slaves :: [Rational]

    fraction to multiply the window height that would be given when divided equally.

    slave windows are assigned their modified heights in order, from top to bottom

    unspecified values are replaced by 1

Instances

Instances details
LayoutClass ResizableTall a Source # 
Instance details

Defined in XMonad.Layout.ResizableTile

Methods

runLayout :: Workspace WorkspaceId (ResizableTall a) a -> Rectangle -> X ([(a, Rectangle)], Maybe (ResizableTall a))

doLayout :: ResizableTall a -> Rectangle -> Stack a -> X ([(a, Rectangle)], Maybe (ResizableTall a))

pureLayout :: ResizableTall a -> Rectangle -> Stack a -> [(a, Rectangle)]

emptyLayout :: ResizableTall a -> Rectangle -> X ([(a, Rectangle)], Maybe (ResizableTall a))

handleMessage :: ResizableTall a -> SomeMessage -> X (Maybe (ResizableTall a))

pureMessage :: ResizableTall a -> SomeMessage -> Maybe (ResizableTall a)

description :: ResizableTall a -> String

Read (ResizableTall a) Source # 
Instance details

Defined in XMonad.Layout.ResizableTile

Methods

readsPrec :: Int -> ReadS (ResizableTall a)

readList :: ReadS [ResizableTall a]

readPrec :: ReadPrec (ResizableTall a)

readListPrec :: ReadPrec [ResizableTall a]

Show (ResizableTall a) Source # 
Instance details

Defined in XMonad.Layout.ResizableTile

Methods

showsPrec :: Int -> ResizableTall a -> ShowS

show :: ResizableTall a -> String

showList :: [ResizableTall a] -> ShowS

data MirrorResize Source #

Constructors

MirrorShrink 
MirrorExpand 

Instances

Instances details
Message MirrorResize Source # 
Instance details

Defined in XMonad.Layout.ResizableTile