aboutsummaryrefslogtreecommitdiff
path: root/.local/share
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2021-01-02 14:54:01 +0100
committerlonkaars <l.leblansch@gmail.com>2021-01-02 14:54:01 +0100
commit92ae4e5c2cac0f5f90059ff5e9efb239e80716a1 (patch)
treeb60ffeab8c0ba967e2fe95cefac3d2e95c6e7511 /.local/share
parenta0de895f5b7007258724639c0391bf5332181f1c (diff)
corona
Diffstat (limited to '.local/share')
-rwxr-xr-x.local/share/bin/covid13
1 files changed, 13 insertions, 0 deletions
diff --git a/.local/share/bin/covid b/.local/share/bin/covid
new file mode 100755
index 0000000..91b1139
--- /dev/null
+++ b/.local/share/bin/covid
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+RESPONSE=$(curl -s "https://disease.sh/v3/covid-19/countries/netherlands")
+prop () { echo $RESPONSE | jq $1 | xargs printf; }
+
+printf "󰀏 "
+prop .cases
+
+printf " 󰯈 "
+prop .deaths
+
+printf "\n"
+