no ping and other tweaks

This commit is contained in:
Luke Smith
2021-09-24 09:50:24 -04:00
parent 5caaa489ac
commit 60e6128754
3 changed files with 15 additions and 10 deletions

View File

@@ -3,8 +3,6 @@
# Set as a cron job to check for new RSS entries for newsboat.
# If newsboat is open, sends it an "R" key to refresh.
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