15 lines
355 B
Plaintext
Raw Normal View History

2020-05-14 13:12:52 +02:00
#!/bin/sh
ping -q -c 1 1.1.1.1 > /dev/null || exit 1
ps ax | grep -q newsboat$ && \
/usr/bin/xdotool key --window \
"$(/usr/bin/xdotool search --name newsboat)" R && exit
echo " " > /tmp/newsupdate
refbar &
2020-07-01 10:44:10 +02:00
/usr/bin/newsboat -x reload && rm -f /tmp/newsupdate
2020-05-14 13:12:52 +02:00
refbar &
newsboat -x print-unread | awk '{ print $1 }' > "$HOME/.cache/news_unread"