aboutsummaryrefslogtreecommitdiff
path: root/i3blocks
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2020-03-24 18:43:34 +0100
committerInigoGutierrez <inigogf.95@gmail.com>2020-03-24 18:43:34 +0100
commit57f95001a8cdc8e8d7642db89de45690076983dd (patch)
treeb378eac1976a67caf7313b7c6330d3f669ebd2ff /i3blocks
parente89978b6c45c6229c6341c1dbf9c28b7ba254a77 (diff)
downloadscripts-57f95001a8cdc8e8d7642db89de45690076983dd.tar.gz
scripts-57f95001a8cdc8e8d7642db89de45690076983dd.zip
Format of corona-stats.online changed.
Diffstat (limited to 'i3blocks')
-rwxr-xr-xi3blocks/i3corona.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/i3blocks/i3corona.sh b/i3blocks/i3corona.sh
index 8874f7f..c8301be 100755
--- a/i3blocks/i3corona.sh
+++ b/i3blocks/i3corona.sh
@@ -17,6 +17,6 @@ tmpFile="${tmpDir}/coronaData.txt"
[ -f "$tmpFile" ] ||
curl https://corona-stats.online/spain > "$tmpFile" 2>/dev/null
-grep 'Spain' "$tmpFile" | sed 's/\s*//g; s/\x1b\[[0-9;]*m//g; s/[,▲]//g' |
- awk -F'│' '{print "😷 " $3 " (+" $9 ") 💪 " $8 "%"}'
+grep 'Spain' "$tmpFile" | sed 's/\s*//g; s/\x1b\[[0-9;]*m//g; s/[,▲║]//g' |
+ awk -F'│' '{print "😷 " $3 " (+" $6 ")"}' # 💪 " $7 "%"}'