mirror of
https://github.com/alrayyes/dotfiles/
synced 2023-11-14 15:56:30 +00:00
13 lines
457 B
Bash
Executable File
13 lines
457 B
Bash
Executable File
#!/bin/sh
|
|
export DISPLAY=":0.0"
|
|
ping -q -c 1 example.org >/dev/null || exit
|
|
/usr/bin/notify-send "📰 Updating RSS feeds..."
|
|
|
|
pgrep -f newsboat$ && /usr/bin/xdotool key --window "$(/usr/bin/xdotool search --name newsboat)" R && exit
|
|
echo "📰📻🔃" >/tmp/newsupdate
|
|
pkill -RTMIN+4 "${STATUSBAR:-dwmblocks}"
|
|
/usr/bin/newsboat -x reload
|
|
rm -f /tmp/newsupdate
|
|
pkill -RTMIN+4 "${STATUSBAR:-dwmblocks}"
|
|
/usr/bin/notify-send "📰 RSS feed update complete."
|