summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2019-10-12 15:35:16 +0100
committerjao <jao@gnu.org>2019-10-12 15:35:38 +0100
commit62e159018a736787d94e0effc9ccb8c8b92b7546 (patch)
treee9493352ee27f749f3493a9117bf2aa687cb5e8f /src
parent6173b1cab8a5df50de7d72eb42f3ababae782e49 (diff)
downloadxmobar-config-62e159018a736787d94e0effc9ccb8c8b92b7546.tar.gz
xmobar-config-62e159018a736787d94e0effc9ccb8c8b92b7546.tar.bz2
using dark/light iconRoot
Diffstat (limited to 'src')
-rw-r--r--src/lib/Config.hs7
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]