xmonad-contrib-0.8.1: Third party extensions for xmonadSource codeContentsIndex
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.
simpleDeco :: (Eq a, Shrinker s) => s -> Theme -> l a -> ModifiedLayout (Decoration SimpleDecoration s) l a
data Theme = Theme {
activeColor :: String
inactiveColor :: String
urgentColor :: String
activeBorderColor :: String
inactiveBorderColor :: String
urgentBorderColor :: String
activeTextColor :: String
inactiveTextColor :: String
urgentTextColor :: String
fontName :: String
decoWidth :: Dimension
decoHeight :: Dimension
defaultTheme :: Theme
data SimpleDecoration a = Simple Bool
shrinkText :: DefaultShrinker
data CustomShrink = CustomShrink
class (Read s, Show s) => Shrinker s where
shrinkIt :: s -> String -> [String]

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

 import XMonad.Layout.SimpleDecoration

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

 myL = simpleDeco shrinkText defaultTheme (layoutHook defaultConfig)
 main = xmonad defaultConfig { layoutHook = myL }

For more detailed instructions on editing the layoutHook see:


You can also edit the default configuration options.

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


 myL = dwmStyle shrinkText mySDConfig (layoutHook defaultTheme)
simpleDeco :: (Eq a, Shrinker s) => s -> Theme -> l a -> ModifiedLayout (Decoration SimpleDecoration s) l aSource
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

activeColor :: StringColor of the active window
inactiveColor :: StringColor of the inactive window
urgentColor :: StringColor of the urgent window
activeBorderColor :: StringColor of the border of the active window
inactiveBorderColor :: StringColor of the border of the inactive window
urgentBorderColor :: StringColor of the border of the urgent window
activeTextColor :: StringColor of the text of the active window
inactiveTextColor :: StringColor of the text of the inactive window
urgentTextColor :: StringColor of the text of the urgent window
fontName :: StringFont name
decoWidth :: DimensionMaximum width of the decorations (if supported by the DecorationStyle)
decoHeight :: DimensionHeight of the decorations
show/hide Instances
defaultTheme :: ThemeSource
The default xmonad Theme.
data SimpleDecoration a Source
Simple Bool
show/hide Instances
shrinkText :: DefaultShrinkerSource
data CustomShrink Source
show/hide Instances
class (Read s, Show s) => Shrinker s whereSource
shrinkIt :: s -> String -> [String]Source
show/hide Instances
Produced by Haddock version 2.4.2