Portability | unportable |
---|---|
Stability | unstable |
Maintainer | andrea.rossato@unibz.it |
Safe Haskell | None |
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 {
- activeColor :: String
- inactiveColor :: String
- urgentColor :: String
- activeBorderColor :: String
- inactiveBorderColor :: String
- urgentBorderColor :: String
- activeTextColor :: String
- inactiveTextColor :: String
- urgentTextColor :: String
- fontName :: String
- decoWidth :: Dimension
- decoHeight :: Dimension
- windowTitleAddons :: [(String, Align)]
- windowTitleIcons :: [([[Bool]], Placement)]
- 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 Theme
s see XMonad.Util.Themes
Theme | |
|
The default xmonad Theme
.