Copyright | (c) 2007 Andrea Rossato |
---|---|
License | BSD-style (see xmonad/LICENSE) |
Maintainer | andrea.rossato@unibz.it |
Stability | unstable |
Portability | unportable |
Safe Haskell | None |
Language | Haskell98 |
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.
Synopsis
- 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
- windowTitleAddons :: [(String, Align)]
- windowTitleIcons :: [([[Bool]], Placement)]
- def :: Default a => a
- 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 def (layoutHook def) main = xmonad def { layoutHook = myL }
For more detailed instructions on editing the layoutHook see:
You can also edit the default configuration options.
mySDConfig = def { inactiveBorderColor = "red" , inactiveTextColor = "red"}
and
myL = dwmStyle shrinkText mySDConfig (layoutHook def)
simpleDeco :: (Eq a, Shrinker s) => s -> Theme -> l a -> ModifiedLayout (Decoration SimpleDecoration s) l a Source #
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 | |
|
defaultTheme :: Theme Source #
Deprecated: Use def (from Data.Default, and re-exported by XMonad.Layout.Decoration) instead.
The default xmonad Theme
.
data SimpleDecoration a Source #
Instances
data CustomShrink Source #
Instances
Read CustomShrink Source # | |
Defined in XMonad.Layout.Decoration readsPrec :: Int -> ReadS CustomShrink # readList :: ReadS [CustomShrink] # | |
Show CustomShrink Source # | |
Defined in XMonad.Layout.Decoration showsPrec :: Int -> CustomShrink -> ShowS # show :: CustomShrink -> String # showList :: [CustomShrink] -> ShowS # | |
Shrinker CustomShrink Source # | |
Defined in XMonad.Config.Droundy |
class (Read s, Show s) => Shrinker s where Source #
Instances
Shrinker DefaultShrinker Source # | |
Defined in XMonad.Layout.Decoration | |
Shrinker CustomShrink Source # | |
Defined in XMonad.Config.Droundy |