From d8fc5aa9c3a6a56beb6e53bcbf1e414b73f2807d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Fri, 16 Dec 2022 19:43:59 +0100 Subject: [PATCH] i3status-rust: Add weather command --- i3/i3status-rs.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/i3/i3status-rs.toml b/i3/i3status-rs.toml index 37fa8cb..6d55529 100644 --- a/i3/i3status-rs.toml +++ b/i3/i3status-rs.toml @@ -80,6 +80,11 @@ signal = 0 block = "custom" command = "ping -n -q -w 2 -c 1 8.8.8.8 >/dev/null 2>/dev/null && echo || echo " +[[block]] +block = "custom" +command = "curl -s 'https://wttr.in/Ansbach?m&T&format=%c%t' | sed 's/ / /g'" +interval = 1800 + [[block]] block = "time" interval = 1