Copyright | (c) 2007 Andrea Rossato |
---|---|
License | BSD-style (see xmonad/LICENSE) |
Maintainer | andrea.rossato@unibz.it |
Stability | unstable |
Portability | unportable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
A layout transformer to have a layout respect a given screen geometry. Mostly used with XMonad.Layout.Decoration (the Horizontal and the Vertical version will react to SetTheme and change their dimension accordingly.
Synopsis
- resizeHorizontal :: Int -> l a -> ModifiedLayout ResizeScreen l a
- resizeVertical :: Int -> l a -> ModifiedLayout ResizeScreen l a
- resizeHorizontalRight :: Int -> l a -> ModifiedLayout ResizeScreen l a
- resizeVerticalBottom :: Int -> l a -> ModifiedLayout ResizeScreen l a
- withNewRectangle :: Rectangle -> l a -> ModifiedLayout ResizeScreen l a
- data ResizeScreen a
- data ResizeMode
Usage:
You can use this module by importing it into your
xmonad.hs
file:
import XMonad.Layout.ResizeScreen
and modifying your layoutHook as follows (for example):
layoutHook = resizeHorizontal 40 Full
For more detailed instructions on editing the layoutHook see the tutorial and XMonad.Doc.Extending.
resizeHorizontal :: Int -> l a -> ModifiedLayout ResizeScreen l a Source #
resizeVertical :: Int -> l a -> ModifiedLayout ResizeScreen l a Source #
resizeHorizontalRight :: Int -> l a -> ModifiedLayout ResizeScreen l a Source #
resizeVerticalBottom :: Int -> l a -> ModifiedLayout ResizeScreen l a Source #
withNewRectangle :: Rectangle -> l a -> ModifiedLayout ResizeScreen l a Source #
data ResizeScreen a Source #
Instances
data ResizeMode Source #
Instances
Read ResizeMode Source # | |
Defined in XMonad.Layout.ResizeScreen readsPrec :: Int -> ReadS ResizeMode # readList :: ReadS [ResizeMode] # readPrec :: ReadPrec ResizeMode # readListPrec :: ReadPrec [ResizeMode] # | |
Show ResizeMode Source # | |
Defined in XMonad.Layout.ResizeScreen showsPrec :: Int -> ResizeMode -> ShowS # show :: ResizeMode -> String # showList :: [ResizeMode] -> ShowS # |