summaryrefslogtreecommitdiff
path: root/home-config/waybar/custom_newsboat.sh
blob: 1ac8428f7c5e4f34fc565e0cafdb5d9a7f7bbfe9 (plain)
1
2
3
4
5
6
7
8
9
10
11
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