diff options
author | Edward Z. Yang <ezyang@mit.edu> | 2011-11-28 02:09:41 -0500 |
---|---|---|
committer | Edward Z. Yang <ezyang@mit.edu> | 2013-07-07 11:49:12 -0700 |
commit | a98ac8fba46b8858959cee6062a49c9121f07fe9 (patch) | |
tree | 26eb3c032be406ddf546bb8cc488d34711877889 /src/Config.hs | |
parent | ed1955e4bb307c7308880d1fae4bb99a7e34d9c7 (diff) | |
download | xmobar-a98ac8fba46b8858959cee6062a49c9121f07fe9.tar.gz xmobar-a98ac8fba46b8858959cee6062a49c9121f07fe9.tar.bz2 |
Transparency and tint support.
New configuration option 'alpha' which adjusts alpha transparency
(0 is transparent, 255 is opaque).
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
Diffstat (limited to 'src/Config.hs')
-rw-r--r-- | src/Config.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Config.hs b/src/Config.hs index 4f03d93..d785002 100644 --- a/src/Config.hs +++ b/src/Config.hs @@ -57,6 +57,7 @@ data Config = , position :: XPosition -- ^ Top Bottom or Static , border :: Border -- ^ NoBorder TopB BottomB or FullB , borderColor :: String -- ^ Border color + , alpha :: Int -- ^ Transparency from 0 (transparent) to 255 (opaque) , hideOnStart :: Bool -- ^ Hide (Unmap) the window on -- initialization , allDesktops :: Bool -- ^ Tell the WM to map to all desktops @@ -107,6 +108,7 @@ defaultConfig = Config { font = "-misc-fixed-*-*-*-*-10-*-*-*-*-*-*-*" , bgColor = "#000000" , fgColor = "#BFBFBF" + , alpha = 0 , position = Top , border = NoBorder , borderColor = "#BFBFBF" |