scripts moved to ~/.local/bin

This commit is contained in:
Luke Smith
2019-05-18 00:07:32 -04:00
parent 18e001db07
commit 54920103c2
78 changed files with 13 additions and 13 deletions

16
.local/bin/cron/newsup Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/sh
# 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 1.1.1.1 > /dev/null || exit
/usr/bin/notify-send "📰 Updating RSS feeds..."
pgrep -x newsboat >/dev/null && /usr/bin/xdotool key --window "$(/usr/bin/xdotool search --name newsboat)" R && exit
echo 🔃 > /tmp/newsupdate
pkill -RTMIN+6 i3blocks
/usr/bin/newsboat -x reload
rm -f /tmp/newsupdate
pkill -RTMIN+6 i3blocks
/usr/bin/notify-send "📰 RSS feed update complete."