diff options
author | jao <jao@gnu.org> | 2021-01-07 00:43:08 +0000 |
---|---|---|
committer | jao <jao@gnu.org> | 2021-01-07 00:43:08 +0000 |
commit | 13e823bdc27fe33136d4d028a2d3e62d22e99c51 (patch) | |
tree | 05344c29a6014acdcc29aab9b2cc87e9df22dfa8 | |
parent | 5fec0688be920bf4ee966ca7d8ff124de1ad5d10 (diff) | |
download | xmobar-config-13e823bdc27fe33136d4d028a2d3e62d22e99c51.tar.gz xmobar-config-13e823bdc27fe33136d4d028a2d3e62d22e99c51.tar.bz2 |
weather from wttr.in, just for the fun of it
-rw-r--r-- | src/TopC.hs | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/TopC.hs b/src/TopC.hs index b389b69..c2c3426 100644 --- a/src/TopC.hs +++ b/src/TopC.hs @@ -59,11 +59,13 @@ config p = (baseConfig p) { , Run (wireless p "wlp1s0") , Run (dynNetwork p) , Run proton0 - , Run w -- LEGE, LEBL, KCV0 , Run (masterVol p) , Run captureVol , Run laTime , Run localTime + -- , Run w -- LEGE, LEBL, KCV0 + , Run (Com "curl" ["https://wttr.in?format=%c"] "wttr" 20000) + , Run (Com "curl" ["https://wttr.in?format=%t+%C"] "wttrT" 20000) ] , template = " " ++ "|batt0| " @@ -71,18 +73,19 @@ config p = (baseConfig p) { ++ "<action=`toggle-app.sh nm-applet`> |proton0||wlp1s0wi|</action>" ++ " |dynnetwork| " ++ "<action=`toggle-app.sh pasystray`>" - ++ " |default:Master| " ++ dimi "\xf130" ++ " |default:Capture|" - ++ "</action> " + ++ " |default:Master| " ++ dimi "\xf130" ++ " |default:Capture|" + ++ "</action> " ++ ma - ++ " |EGPH| " + -- ++ " |EGPH| " + ++ fn 3 " |wttr| " ++ "|wttrT|" ++ " {} " ++ fc (pHigh p) "|elog|" ++ "|kbd| " ++ "|multicpu| " ++ "|multicoretemp| " ++ " |top| " - ++ fni "\xf080" ++ " |memory| " - ++ fni "\xf0a0" ++ fc "grey60" " |diskio|" ++ " |disku| " + ++ fni "\xf0c9" ++ " |memory| " + ++ dimi "\xf1c0" ++ fc "grey60" " |diskio|" ++ " |disku| " ++ fni "\xf017" ++ " |datetime| " ++ "|laTime| " } where dimi = fc (pDim p) . fni |