1
0
mirror of https://github.com/alrayyes/dotfiles/ synced 2023-11-14 15:56:30 +00:00

Remove ansi colorcodes from corona output

This commit is contained in:
Ryan Kes 2020-03-21 14:32:07 +01:00
parent fe51be7d45
commit 1166d74b4c

View File

@ -404,7 +404,8 @@ content-foreground = ${colors.primary}
[module/corona]
type = custom/script
exec = curl --silent "https://corona-stats.online/Netherlands?minimal=true" | sed -n '2p' | awk '{ print $6, $7"%", $9$10, $11$12 }'
exec = curl --silent "https://corona-stats.online/Netherlands?minimal=true" | sed -n '2p' | sed 's/\x1b\[[0-9;]*m//g' | awk '{ print "😷" $6, "💀" $7"%", $9$10, $11$12 }'
interval = 900
;== Other Settings ========================================================