dotfiles-guix/home-config/waybar/custom_newsboat.sh
2023-09-04 23:21:01 -04:00

12 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