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

XMonad.Layout.DwmStyle

Contents

Description

A layout modifier for decorating windows in a dwm like style.

Synopsis

Usage:

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

import XMonad.Layout.DwmStyle

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

myL = dwmStyle 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.

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

and

myL = dwmStyle shrinkText myDWConfig (layoutHook def)

A complete xmonad.hs file for this would therefore be:

import XMonad
import XMonad.Layout.DwmStyle

main = xmonad def {
    layoutHook = dwmStyle shrinkText def (layoutHook def)
    }

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

Add simple old dwm-style 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
Default Theme Source #

The default xmonad Theme.

Instance details

Defined in XMonad.Layout.Decoration

Methods

def :: Theme #

Read Theme Source # 
Instance details

Defined in XMonad.Layout.Decoration

Methods

readsPrec :: Int -> ReadS Theme

readList :: ReadS [Theme]

readPrec :: ReadPrec Theme

readListPrec :: ReadPrec [Theme]

Show Theme Source # 
Instance details

Defined in XMonad.Layout.Decoration

Methods

showsPrec :: Int -> Theme -> ShowS

show :: Theme -> String

showList :: [Theme] -> ShowS

def :: Default a => a #

data DwmStyle a Source #

Constructors

Dwm 

Instances

Instances details
Eq a => DecorationStyle DwmStyle a Source # 
Instance details

Defined in XMonad.Layout.DwmStyle

Methods

describeDeco :: DwmStyle a -> String Source #

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

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

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

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

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

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

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

Read (DwmStyle a) Source # 
Instance details

Defined in XMonad.Layout.DwmStyle

Methods

readsPrec :: Int -> ReadS (DwmStyle a)

readList :: ReadS [DwmStyle a]

readPrec :: ReadPrec (DwmStyle a)

readListPrec :: ReadPrec [DwmStyle a]

Show (DwmStyle a) Source # 
Instance details

Defined in XMonad.Layout.DwmStyle

Methods

showsPrec :: Int -> DwmStyle a -> ShowS

show :: DwmStyle a -> String

showList :: [DwmStyle a] -> ShowS

data CustomShrink Source #

Constructors

CustomShrink 

Instances

Instances details
Read CustomShrink Source # 
Instance details

Defined in XMonad.Layout.Decoration

Methods

readsPrec :: Int -> ReadS CustomShrink

readList :: ReadS [CustomShrink]

readPrec :: ReadPrec CustomShrink

readListPrec :: ReadPrec [CustomShrink]

Show CustomShrink Source # 
Instance details

Defined in XMonad.Layout.Decoration

Methods

showsPrec :: Int -> CustomShrink -> ShowS

show :: CustomShrink -> String

showList :: [CustomShrink] -> ShowS

Shrinker CustomShrink Source # 
Instance details

Defined in XMonad.Config.Droundy

Methods

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

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

Methods

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

Shrinker DefaultShrinker Source # 
Instance details

Defined in XMonad.Layout.Decoration

Methods

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