diff options
Diffstat (limited to 'home-config/waybar/custom_newsboat.sh')
-rwxr-xr-x | home-config/waybar/custom_newsboat.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/home-config/waybar/custom_newsboat.sh b/home-config/waybar/custom_newsboat.sh new file mode 100755 index 0000000..1ac8428 --- /dev/null +++ b/home-config/waybar/custom_newsboat.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +while :; do + until newsboat -x reload >/dev/null; do + sleep 1; + done + until unread="$(newsboat -x print-unread)"; do + sleep 1; + done + echo "$unread" | awk '{ print $1 }' + sleep 300 +done |