xmonad-contrib-0.18.1: Community-maintained extensions for xmonad
Copyright(c) 2007 Andrea Rossato
LicenseBSD-style (see xmonad/LICENSE)
Maintainerandrea.rossato@unibz.it
Stabilityunstable
Portabilityunportable
Safe HaskellNone
LanguageHaskell2010

XMonad.Layout.SimpleDecoration

Contents

Description

A layout modifier for adding simple decorations to the windows of a given layout. The decorations are in the form of ion-like tabs for window titles.

Synopsis

Usage:

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

import XMonad.Layout.SimpleDecoration

Then edit your layoutHook by adding the SimpleDecoration decoration to your layout:

myL = simpleDeco shrinkText def (layoutHook def)
main = xmonad def { layoutHook = myL }

For more detailed instructions on editing the layoutHook see the tutorial and XMonad.Doc.Extending.

You can also edit the default configuration options.

mySDConfig = def { inactiveBorderColor = "red"
                 , inactiveTextColor   = "red"}

and

myL = simpleDeco shrinkText mySDConfig (layoutHook def)

simpleDeco :: (Eq a, Shrinker s) => s -> Theme -> l a -> ModifiedLayout (Decoration SimpleDecoration s) l a Source #

Add simple decorations to windows of a layout.

data Theme Source #

A Theme is a record of colors, font etc., to customize a DecorationStyle.

For a collection of Themes see XMonad.Util.Themes

Constructors

Theme 

Fields

Instances

Instances details
Read Theme Source # 
Instance details

Defined in XMonad.Layout.Decoration

Show Theme Source # 
Instance details

Defined in XMonad.Layout.Decoration

Methods

showsPrec :: Int -> Theme -> ShowS #

show :: Theme -> String #

showList :: [Theme] -> ShowS #

Default Theme Source #

The default xmonad Theme.

Instance details

Defined in XMonad.Layout.Decoration

Methods

def :: Theme #

def :: Default a => a #

The default value for this type.

newtype SimpleDecoration a Source #

Constructors

Simple Bool 

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

Methods

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

Instances

Instances details
Shrinker CustomShrink Source # 
Instance details

Defined in XMonad.Config.Droundy

Shrinker DefaultShrinker Source # 
Instance details

Defined in XMonad.Layout.Decoration