dotfiles/.config/waybar/custom_newsboat.sh
2024-10-15 14:57:02 -04:00

13 lines
229 B
Bash
Executable file

#!/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