xmonad-contrib-0.11.3: Third party extensions for xmonad

Safe HaskellNone




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.



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 :: String

Color of the active window

inactiveColor :: String

Color of the inactive window

urgentColor :: String

Color of the urgent window

activeBorderColor :: String

Color of the border of the active window

inactiveBorderColor :: String

Color of the border of the inactive window

urgentBorderColor :: String

Color of the border of the urgent window

activeTextColor :: String

Color of the text of the active window

inactiveTextColor :: String

Color of the text of the inactive window

urgentTextColor :: String

Color of the text of the urgent window

fontName :: String

Font name

decoWidth :: Dimension

Maximum width of the decorations (if supported by the DecorationStyle)

decoHeight :: Dimension

Height of the decorations

windowTitleAddons :: [(String, Align)]

Extra text to appear in a window's title bar. Refer to for a use XMonad.Layout.ImageButtonDecoration

windowTitleIcons :: [([[Bool]], Placement)]

Extra icons to appear in a window's title bar. Inner [Bool] is a row in a icon bitmap.


defaultTheme :: ThemeSource

The default xmonad Theme.

class (Read s, Show s) => Shrinker s whereSource


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