diff options
| author | iceyrazor <iceyrazor@mailfence.com> | 2026-07-22 02:42:17 -0500 |
|---|---|---|
| committer | iceyrazor <iceyrazor@mailfence.com> | 2026-07-22 02:42:17 -0500 |
| commit | b50c450a572c9951baf2bdf1720fb241625c626d (patch) | |
| tree | 4750183b51250f5444a6839bc2bf679ef9a12b79 /env/.local/bin/system/start-scripts | |
| parent | 735b92dbcfe2f8f85047110bdd17f48900b12b8e (diff) | |
fixed i3blocks breaking blocks on multible monitors
added keybind for cboomer
urlview.sh change
added asciidoc asociation for vis for v0.9 tag
fixed vis theme
added xorg-xinit. fixed typo xlibre-xserver
moved ugrep
urlview check change
Diffstat (limited to 'env/.local/bin/system/start-scripts')
| -rwxr-xr-x | env/.local/bin/system/start-scripts/newsboat-fetch.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/env/.local/bin/system/start-scripts/newsboat-fetch.sh b/env/.local/bin/system/start-scripts/newsboat-fetch.sh index 5eefe9b..bd9146c 100755 --- a/env/.local/bin/system/start-scripts/newsboat-fetch.sh +++ b/env/.local/bin/system/start-scripts/newsboat-fetch.sh @@ -1,11 +1,17 @@ #!/bin/sh + +CACHE_FILE="/tmp/newsboat-unreads.cache" + +[ -f "$CACHE_FILE" ] || echo "0" > "$CACHE_FILE" + newsboat_loop(){ NO_PROXY=\".com,.org,.xyz,.chat,.social,.net,.co,.love\" newsboat -x reload - #newsboat -x print-unread | xargs -0 notify-send "newsboat feed" unreads=$(newsboat -x print-unread) unreadnum=$(printf -- "%s" "$unreads" | sed 's/ .*//g') + echo "${unreadnum:-0}" > "$CACHE_FILE" + if [ "$unreadnum" -gt 0 ]; then notify-send "newsboat feed" "$unreads" fi |
