2020-12-06 09:34:03 +00:00
|
|
|
#!/bin/sh
|
2020-03-12 01:42:49 +00:00
|
|
|
export DISPLAY=":0.0"
|
2020-12-06 09:34:03 +00:00
|
|
|
ping -q -c 1 example.org >/dev/null || exit
|
|
|
|
/usr/bin/notify-send "📰 Updating RSS feeds..."
|
2020-03-08 13:36:05 +00:00
|
|
|
|
2020-12-06 09:34:03 +00:00
|
|
|
pgrep -f newsboat$ && /usr/bin/xdotool key --window "$(/usr/bin/xdotool search --name newsboat)" R && exit
|
2020-12-20 14:20:26 +00:00
|
|
|
echo "📰📻🔃" >/tmp/newsupdate
|
2020-12-06 09:34:03 +00:00
|
|
|
pkill -RTMIN+4 "${STATUSBAR:-dwmblocks}"
|
2020-03-12 01:42:49 +00:00
|
|
|
/usr/bin/newsboat -x reload
|
2020-12-06 09:34:03 +00:00
|
|
|
rm -f /tmp/newsupdate
|
|
|
|
pkill -RTMIN+4 "${STATUSBAR:-dwmblocks}"
|
|
|
|
/usr/bin/notify-send "📰 RSS feed update complete."
|