diff options
Diffstat (limited to 'i3status/.local/bin')
-rwxr-xr-x | i3status/.local/bin/notmuch-status | 7 | ||||
-rwxr-xr-x | i3status/.local/bin/rss-status | 15 |
2 files changed, 0 insertions, 22 deletions
diff --git a/i3status/.local/bin/notmuch-status b/i3status/.local/bin/notmuch-status deleted file mode 100755 index 1c51be8..0000000 --- a/i3status/.local/bin/notmuch-status +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -notmuch search --format=json tag:unread | jq -c 'length | { - icon: "mail", - state: (if . == 0 then "Idle" elif . < 10 then "Warning" else "Critical" end), - text: (. | tostring) -}' 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}" |