dotfiles-guix/home-config/waybar/custom_newsboat.sh

13 lines
229 B
Bash
Raw Normal View History

2023-09-05 03:21:01 +00:00
#!/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