Copyright | (c) 2007 Andrea Rossato |
---|---|
License | BSD-style (see xmonad/LICENSE) |
Maintainer | andrea.rossato@unibz.it |
Stability | unstable |
Portability | unportable |
Safe Haskell | None |
Language | Haskell2010 |
A basic floating layout.
Synopsis
- simpleFloat :: Eq a => ModifiedLayout (Decoration SimpleDecoration DefaultShrinker) (ModifiedLayout MouseResize (ModifiedLayout WindowArranger SimpleFloat)) a
- simpleFloat' :: (Eq a, Shrinker s) => s -> Theme -> ModifiedLayout (Decoration SimpleDecoration s) (ModifiedLayout MouseResize (ModifiedLayout WindowArranger SimpleFloat)) a
- newtype SimpleDecoration a = Simple Bool
- newtype SimpleFloat a = SF Dimension
- shrinkText :: DefaultShrinker
- data CustomShrink = CustomShrink
- class (Read s, Show s) => Shrinker s where
Usage:
You can use this module with the following in your
~/.xmonad/xmonad.hs
:
import XMonad.Layout.SimpleFloat
Then edit your layoutHook
by adding the SimpleFloat layout:
myLayout = simpleFloat ||| Full ||| etc.. main = xmonad def { layoutHook = myLayout }
For more detailed instructions on editing the layoutHook see:
simpleFloat :: Eq a => ModifiedLayout (Decoration SimpleDecoration DefaultShrinker) (ModifiedLayout MouseResize (ModifiedLayout WindowArranger SimpleFloat)) a Source #
A simple floating layout where every window is placed according to the window's initial attributes.
This version is decorated with the SimpleDecoration
style.
simpleFloat' :: (Eq a, Shrinker s) => s -> Theme -> ModifiedLayout (Decoration SimpleDecoration s) (ModifiedLayout MouseResize (ModifiedLayout WindowArranger SimpleFloat)) a Source #
Same as simpleFloat
, but with the possibility of setting a
custom shrinker and a custom theme.
newtype SimpleDecoration a Source #
Instances
newtype SimpleFloat a Source #
Instances
data CustomShrink Source #
Instances
Read CustomShrink Source # | |
Defined in XMonad.Layout.Decoration readsPrec :: Int -> ReadS CustomShrink # readList :: ReadS [CustomShrink] # | |
Show CustomShrink Source # | |
Defined in XMonad.Layout.Decoration showsPrec :: Int -> CustomShrink -> ShowS # show :: CustomShrink -> String # showList :: [CustomShrink] -> ShowS # | |
Shrinker CustomShrink Source # | |
Defined in XMonad.Config.Droundy |
class (Read s, Show s) => Shrinker s where Source #
Instances
Shrinker DefaultShrinker Source # | |
Defined in XMonad.Layout.Decoration | |
Shrinker CustomShrink Source # | |
Defined in XMonad.Config.Droundy |