blob: c9412fb24f2e208c354645b4ee342cc27b1f69dc (
plain)
1
2
3
4
5
6
7
8
9
|
#!/bin/sh
curl -s https://miniflux.tobyvin.dev/v1/feeds/counters \
-H "X-Auth-Token: ${MINIFLUX_TOKEN:-$(pass miniflux.tobyvin.dev/i3status)}" |
jq -r '[.unreads[]] | add // 0 | {
icon: "rss",
state: (if . > 50 then "Critical" elif . > 0 then "Warning" else "Idle" end),
text: (. | tostring)
}'
|