diff options
| author | jao <jao@gnu.org> | 2019-10-12 15:35:16 +0100 | 
|---|---|---|
| committer | jao <jao@gnu.org> | 2019-10-12 15:35:38 +0100 | 
| commit | 62e159018a736787d94e0effc9ccb8c8b92b7546 (patch) | |
| tree | e9493352ee27f749f3493a9117bf2aa687cb5e8f | |
| parent | 6173b1cab8a5df50de7d72eb42f3ababae782e49 (diff) | |
| download | xmobar-config-62e159018a736787d94e0effc9ccb8c8b92b7546.tar.gz xmobar-config-62e159018a736787d94e0effc9ccb8c8b92b7546.tar.bz2 | |
using dark/light iconRoot
| -rw-r--r-- | src/lib/Config.hs | 7 | 
1 files changed, 5 insertions, 2 deletions
| diff --git a/src/lib/Config.hs b/src/lib/Config.hs index 58108f1..8f05a88 100644 --- a/src/lib/Config.hs +++ b/src/lib/Config.hs @@ -16,6 +16,7 @@ data Palette = Palette { pNormal :: String                         , pForeground :: String                         , pBackground :: String                         , pAlpha :: Int +                       , pIconRoot :: String                         }  lightTheme :: IO Bool @@ -29,7 +30,8 @@ lightPalette = Palette { pNormal = "black"                         , pBorder = "grey80"                         , pForeground = "#000000"                         , pBackground = "white" -                       , pAlpha = 0 +                       , pAlpha = 255 +                       , pIconRoot = "/home/jao/.xmobar/icons/light"                         }  darkPalette :: Palette @@ -42,6 +44,7 @@ darkPalette = Palette { pNormal = "grey60"                        , pForeground = "grey60"                        , pBackground = "black"                        , pAlpha = 0 +                      , pIconRoot = "/home/jao/.xmobar/icons/dark"                        }  palette :: IO Palette @@ -69,7 +72,7 @@ baseConfig p = defaultConfig {    , persistent = True    , sepChar = "|"    , alignSep = "{}" -  , iconRoot = "/home/jao/.xmobar/icons" +  , iconRoot = (pIconRoot p)    }  (<~>) :: Palette -> [String] -> [String] | 
