Portability | unportable |
---|---|
Stability | unstable |
Maintainer | andrea.rossato@unibz.it |
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 {}
- defaultTheme :: Theme
- data SimpleDecoration a = Simple Bool
- 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.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"}
and
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.
A Theme
is a record of colors, font etc., to customize a
DecorationStyle
.
For a collection of Theme
s see XMonad.Util.Themes
Theme | |
|
The default xmonad Theme
.
data SimpleDecoration a Source
Eq a => DecorationStyle SimpleDecoration a | |
Read (SimpleDecoration a) | |
Show (SimpleDecoration a) |