XMonad.Layout.SimpleFloat

xmonad-contrib-0.18.1: Community-maintained extensions for xmonad

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

XMonad.Layout.SimpleFloat

Contents

- Usage:

Description

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
  - shrinkIt :: s -> String -> [String]

# Usage:

You can use this module with the following in your `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 the tutorial and XMonad.Doc.Extending.

simpleFloat :: Eq a => ModifiedLayout (Decoration SimpleDecoration DefaultShrinker) (ModifiedLayout MouseResize (ModifiedLayout WindowArranger SimpleFloat)) a #

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 #

Same as `simpleFloat`, but with the possibility of setting a custom shrinker and a custom theme.

newtype SimpleDecoration a #

Constructors

Simple Bool |

#### Instances

Instances details

Eq a => DecorationStyle SimpleDecoration a # |
Instance details Defined in XMonad.Layout.SimpleDecoration Methods describeDeco :: SimpleDecoration a -> String # shrink :: SimpleDecoration a -> Rectangle -> Rectangle -> Rectangle # decorationEventHook :: SimpleDecoration a -> DecorationState -> Event -> X () # decorationCatchClicksHook :: SimpleDecoration a -> Window -> Int -> Int -> X Bool # decorationWhileDraggingHook :: SimpleDecoration a -> CInt -> CInt -> (Window, Rectangle) -> Position -> Position -> X () # decorationAfterDraggingHook :: SimpleDecoration a -> (Window, Rectangle) -> Window -> X () # pureDecoration :: SimpleDecoration a -> Dimension -> Dimension -> Rectangle -> Stack a -> [(a, Rectangle)] -> (a, Rectangle) -> Maybe Rectangle # decorate :: SimpleDecoration a -> Dimension -> Dimension -> Rectangle -> Stack a -> [(a, Rectangle)] -> (a, Rectangle) -> X (Maybe Rectangle) #
Read (SimpleDecoration a) # |
Instance details Defined in XMonad.Layout.SimpleDecoration Methods readsPrec :: Int -> ReadS (SimpleDecoration a) # readList :: ReadS [SimpleDecoration a] # readPrec :: ReadPrec (SimpleDecoration a) # readListPrec :: ReadPrec [SimpleDecoration a] #
Show (SimpleDecoration a) # |
Instance details Defined in XMonad.Layout.SimpleDecoration Methods showsPrec :: Int -> SimpleDecoration a -> ShowS # show :: SimpleDecoration a -> String # showList :: [SimpleDecoration a] -> ShowS #

newtype SimpleFloat a #

Constructors

SF Dimension |

#### Instances

Instances details

LayoutClass SimpleFloat Window # |
Instance details Defined in XMonad.Layout.SimpleFloat Methods runLayout :: Workspace WorkspaceId (SimpleFloat Window) Window -> Rectangle -> X ([(Window, Rectangle)], Maybe (SimpleFloat Window)) # doLayout :: SimpleFloat Window -> Rectangle -> Stack Window -> X ([(Window, Rectangle)], Maybe (SimpleFloat Window)) # pureLayout :: SimpleFloat Window -> Rectangle -> Stack Window -> [(Window, Rectangle)] # emptyLayout :: SimpleFloat Window -> Rectangle -> X ([(Window, Rectangle)], Maybe (SimpleFloat Window)) # handleMessage :: SimpleFloat Window -> SomeMessage -> X (Maybe (SimpleFloat Window)) # pureMessage :: SimpleFloat Window -> SomeMessage -> Maybe (SimpleFloat Window) # description :: SimpleFloat Window -> String #
Read (SimpleFloat a) # |
Instance details Defined in XMonad.Layout.SimpleFloat Methods readsPrec :: Int -> ReadS (SimpleFloat a) # readList :: ReadS [SimpleFloat a] # readPrec :: ReadPrec (SimpleFloat a) # readListPrec :: ReadPrec [SimpleFloat a] #
Show (SimpleFloat a) # |
Instance details Defined in XMonad.Layout.SimpleFloat Methods showsPrec :: Int -> SimpleFloat a -> ShowS # show :: SimpleFloat a -> String # showList :: [SimpleFloat a] -> ShowS #

shrinkText :: DefaultShrinker #

data CustomShrink #

Constructors

CustomShrink |

#### Instances

Instances details

Read CustomShrink # |
Instance details Defined in XMonad.Layout.Decoration Methods readsPrec :: Int -> ReadS CustomShrink # readList :: ReadS [CustomShrink] # readPrec :: ReadPrec CustomShrink # readListPrec :: ReadPrec [CustomShrink] #
Show CustomShrink # |
Instance details Defined in XMonad.Layout.Decoration Methods showsPrec :: Int -> CustomShrink -> ShowS # show :: CustomShrink -> String # showList :: [CustomShrink] -> ShowS #
Shrinker CustomShrink # |
Instance details Defined in XMonad.Config.Droundy Methods shrinkIt :: CustomShrink -> String -> [String] #

class (Read s, Show s) => Shrinker s where #

Methods

shrinkIt :: s -> String -> [String] #

#### Instances

Instances details

Shrinker CustomShrink # |
Instance details Defined in XMonad.Config.Droundy Methods shrinkIt :: CustomShrink -> String -> [String] #
Shrinker DefaultShrinker # |
Instance details Defined in XMonad.Layout.Decoration Methods shrinkIt :: DefaultShrinker -> String -> [String] #