xmonad-contrib-0.13: Third party extensions for xmonad

Copyright(c) 2007 Andrea Rossato
LicenseBSD-style (see xmonad/LICENSE)
Maintainerandrea.rossato@unibz.it
Stabilityunstable
Portabilityunportable
Safe HaskellNone
LanguageHaskell98

XMonad.Layout.SimpleFloat

Contents

Description

A basic floating layout.

Synopsis

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:

XMonad.Doc.Extending

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.

data SimpleDecoration a Source #

Constructors

Simple Bool 

Instances

Eq a => DecorationStyle SimpleDecoration a Source # 

Methods

describeDeco :: SimpleDecoration a -> String Source #

shrink :: SimpleDecoration a -> Rectangle -> Rectangle -> Rectangle Source #

decorationEventHook :: SimpleDecoration a -> DecorationState -> Event -> X () Source #

decorationCatchClicksHook :: SimpleDecoration a -> Window -> Int -> Int -> X Bool Source #

decorationWhileDraggingHook :: SimpleDecoration a -> CInt -> CInt -> (Window, Rectangle) -> Position -> Position -> X () Source #

decorationAfterDraggingHook :: SimpleDecoration a -> (Window, Rectangle) -> Window -> X () Source #

pureDecoration :: SimpleDecoration a -> Dimension -> Dimension -> Rectangle -> Stack a -> [(a, Rectangle)] -> (a, Rectangle) -> Maybe Rectangle Source #

decorate :: SimpleDecoration a -> Dimension -> Dimension -> Rectangle -> Stack a -> [(a, Rectangle)] -> (a, Rectangle) -> X (Maybe Rectangle) Source #

Read (SimpleDecoration a) Source # 
Show (SimpleDecoration a) Source # 

data SimpleFloat a Source #

Constructors

SF Dimension 

Instances

LayoutClass SimpleFloat Window Source # 

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) Source # 
Show (SimpleFloat a) Source # 

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

Minimal complete definition

shrinkIt

Methods

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