From dd6cfb63ad85d0164cbe4ac04f7aea9f6a842f02 Mon Sep 17 00:00:00 2001 From: Toby Vincent Date: Tue, 28 May 2024 15:27:15 -0500 Subject: feat!: remove unused configs and cleanup paths --- i3status/.local/bin/rss-status | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100755 i3status/.local/bin/rss-status (limited to 'i3status/.local/bin/rss-status') 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}" -- cgit v1.2.3-70-g09d2