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-status15
1 files changed, 0 insertions, 15 deletions
diff --git a/i3status/.local/bin/rss-status b/i3status/.local/bin/rss-status
deleted file mode 100755
index a404a3b..0000000
--- a/i3status/.local/bin/rss-status
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-# shellcheck disable=SC2046
-
-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"] | .[]')
-fi
-
-busctl --user call rs.i3status /rss rs.i3status.custom SetText ss "${1:-0}" "${1:-0}"
-busctl --user call rs.i3status /rss rs.i3status.custom SetState s "${2:-idle}"
-busctl --user call rs.i3status /rss rs.i3status.custom SetIcon s "${3:-rss}"