aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/i3status/.local/bin/rss-status
diff options
context:
space:
mode:
Diffstat (limited to 'i3status/.local/bin/rss-status')
-rwxr-xr-xi3status/.local/bin/rss-status2
1 files changed, 2 insertions, 0 deletions
diff --git a/i3status/.local/bin/rss-status b/i3status/.local/bin/rss-status
index 1e51019..a404a3b 100755
--- a/i3status/.local/bin/rss-status
+++ b/i3status/.local/bin/rss-status
@@ -3,6 +3,8 @@
set -e
+sleep 1
+
if [ $# -eq 0 ]; then
set -- $(curl -sH "X-Auth-Token: ${MINIFLUX_TOKEN:-$(pass miniflux.tobyvin.dev/i3status)}" https://miniflux.tobyvin.dev/v1/feeds/counters |
jq -r '[.unreads[]] | add // 0 | [., (if . > 50 then "critical" elif . > 0 then "warning" else "idle" end), "rss"] | .[]')