diff options
author | slotThe <soliditsallgood@tuta.io> | 2020-01-02 22:07:47 +0100 |
---|---|---|
committer | slotThe <soliditsallgood@tuta.io> | 2020-01-04 19:31:05 +0100 |
commit | d843df76d2fbf6c4dcdcb044d91fc3b94e0341a7 (patch) | |
tree | 4ff335804c812fb5f344cf8e890ae70a24293bff /src/Xmobar/Plugins/Monitors.hs | |
parent | ca5b802bd4fa134cdbc3e4986d64b5116bcffd68 (diff) | |
download | xmobar-d843df76d2fbf6c4dcdcb044d91fc3b94e0341a7.tar.gz xmobar-d843df76d2fbf6c4dcdcb044d91fc3b94e0341a7.tar.bz2 |
Add 'WeatherOpts' type and first option to weather plugin
The first option applied here is a default value for a field that's not always
reported to be there, namely the 'weather' field. It now defaults to saying
"normal" instead of displaying an empty string.
Diffstat (limited to 'src/Xmobar/Plugins/Monitors.hs')
-rw-r--r-- | src/Xmobar/Plugins/Monitors.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Xmobar/Plugins/Monitors.hs b/src/Xmobar/Plugins/Monitors.hs index cac4635..f79b406 100644 --- a/src/Xmobar/Plugins/Monitors.hs +++ b/src/Xmobar/Plugins/Monitors.hs @@ -164,8 +164,8 @@ instance Exec Monitors where start (TopProc a r) = startTop a r start (TopMem a r) = runM a topMemConfig runTopMem r #ifdef WEATHER - start (Weather s a r) = runMD (a ++ [s]) weatherConfig runWeather r weatherReady - start (WeatherX s c a r) = runMD (a ++ [s]) weatherConfig (runWeather' c) r weatherReady + start (Weather s a r) = runMD (s : a) weatherConfig runWeather r weatherReady + start (WeatherX s c a r) = runMD (s : a) weatherConfig (runWeather' c) r weatherReady #endif start (Thermal z a r) = runM (a ++ [z]) thermalConfig runThermal r start (ThermalZone z a r) = |