From 7888574b1c18c77b75e5c6c5930cd0709f16898a Mon Sep 17 00:00:00 2001 From: Jackson Taylor Date: Thu, 3 Feb 2022 22:22:11 -0500 Subject: Catching up --- .local/bin/newsup | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to '.local/bin/newsup') diff --git a/.local/bin/newsup b/.local/bin/newsup index 29f2b3c..ed266d7 100755 --- a/.local/bin/newsup +++ b/.local/bin/newsup @@ -3,11 +3,9 @@ # 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 +pgrep -f newsboat$ && /usr/bin/xdotool key --window "$(/usr/bin/xdotool search --name "^newsboat$")" R && exit echo 🔃 > /tmp/newsupdate pkill -RTMIN+6 "${STATUSBAR:-dwmblocks}" -- cgit v1.2.3