1
0
mirror of https://github.com/alrayyes/dotfiles/ synced 2023-11-14 15:56:30 +00:00
dotfiles/newsboat/.local/bin/newsup

13 lines
457 B
Plaintext
Raw Normal View History

#!/bin/sh
2020-03-12 01:42:49 +00:00
export DISPLAY=":0.0"
ping -q -c 1 example.org >/dev/null || exit
/usr/bin/notify-send "📰 Updating RSS feeds..."
2020-03-08 13:36:05 +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
pkill -RTMIN+4 "${STATUSBAR:-dwmblocks}"
2020-03-12 01:42:49 +00:00
/usr/bin/newsboat -x reload
rm -f /tmp/newsupdate
pkill -RTMIN+4 "${STATUSBAR:-dwmblocks}"
/usr/bin/notify-send "📰 RSS feed update complete."