dotfiles/.config/waybar/custom_newsboat.sh

13 lines
229 B
Bash
Raw Normal View History

2023-03-07 18:15:21 +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