xmonad-contrib-0.13: Third party extensions for xmonad

Copyright(c) Jan Vornberger 2009
LicenseBSD3-style (see LICENSE)
Maintainerjan.vornberger@informatik.uni-oldenburg.de
Stabilityunstable
Portabilitynot portable
Safe HaskellNone
LanguageHaskell98

XMonad.Layout.ButtonDecoration

Contents

Description

A decoration that includes small buttons on both ends which invoke various actions when clicked on: Show a window menu (see XMonad.Actions.WindowMenu), minimize, maximize or close the window.

Note: For maximizing and minimizing to actually work, you will need to integrate XMonad.Layout.Maximize and XMonad.Layout.Minimize into your setup. See the documentation of those modules for more information.

Synopsis

Usage:

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

import XMonad.Layout.DecorationAddons
import XMonad.Layout.ButtonDecoration

Then edit your layoutHook by adding the ButtonDecoration to your layout:

myL = buttonDeco shrinkText defaultThemeWithButtons (layoutHook def)
main = xmonad def { layoutHook = myL }

data ButtonDecoration a #

Instances

Eq a => DecorationStyle ButtonDecoration a # 

Methods

describeDeco :: ButtonDecoration a -> String #

shrink :: ButtonDecoration a -> Rectangle -> Rectangle -> Rectangle #

decorationEventHook :: ButtonDecoration a -> DecorationState -> Event -> X () #

decorationCatchClicksHook :: ButtonDecoration a -> Window -> Int -> Int -> X Bool #

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

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

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

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

Read (ButtonDecoration a) # 
Show (ButtonDecoration a) #