From 1166d74b4c397b9829bd23e5fa9c55be826dd94a Mon Sep 17 00:00:00 2001 From: Ryan Kes Date: Sat, 21 Mar 2020 14:32:07 +0100 Subject: [PATCH] Remove ansi colorcodes from corona output --- polybar/.config/polybar/config | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/polybar/.config/polybar/config b/polybar/.config/polybar/config index d9f8444..420ecca 100644 --- a/polybar/.config/polybar/config +++ b/polybar/.config/polybar/config @@ -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 ========================================================