From 13e823bdc27fe33136d4d028a2d3e62d22e99c51 Mon Sep 17 00:00:00 2001 From: jao Date: Thu, 7 Jan 2021 00:43:08 +0000 Subject: weather from wttr.in, just for the fun of it --- src/TopC.hs | 15 +++++++++------ 1 file 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) { ++ " |proton0||wlp1s0wi|" ++ " |dynnetwork| " ++ "" - ++ " |default:Master| " ++ dimi "\xf130" ++ " |default:Capture|" - ++ " " + ++ " |default:Master| " ++ dimi "\xf130" ++ " |default:Capture|" + ++ " " ++ 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 -- cgit v1.2.3