| Portability | unportable |
|---|---|
| Stability | unstable |
| Maintainer | andrea.rossato@unibz.it |
XMonad.Layout.DwmStyle
Contents
Description
A layout modifier for decorating windows in a dwm like style.
- dwmStyle :: (Eq a, Shrinker s) => s -> Theme -> l a -> ModifiedLayout (Decoration DwmStyle s) l a
- data Theme = Theme {}
- defaultTheme :: Theme
- data DwmStyle a = Dwm
- shrinkText :: DefaultShrinker
- data CustomShrink = CustomShrink
- class (Read s, Show s) => Shrinker s where
Usage:
You can use this module with the following in your
~/.xmonad/xmonad.hs:
import XMonad.Layout.DwmStyle
Then edit your layoutHook by adding the DwmStyle decoration to
your layout:
myL = dwmStyle 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.
myDWConfig = defaultTheme { inactiveBorderColor = "red"
, inactiveTextColor = "red"}
and
myL = dwmStyle shrinkText myDWConfig (layoutHook defaultConfig)
A complete xmonad.hs file for this would therefore be:
import XMonad
import XMonad.Layout.DwmStyle
main = xmonad defaultConfig {
layoutHook =
dwmStyle shrinkText defaultTheme
(layoutHook defaultConfig)
}
dwmStyle :: (Eq a, Shrinker s) => s -> Theme -> l a -> ModifiedLayout (Decoration DwmStyle s) l aSource
Add simple old dwm-style decorations to windows of a layout.
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
| |
The default xmonad Theme.
Constructors
| Dwm |