summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-x.scripts/cron/newsup4
-rwxr-xr-x.scripts/statusbar/news2
2 files changed, 3 insertions, 3 deletions
diff --git a/.scripts/cron/newsup b/.scripts/cron/newsup
index 32f6a37..725ccb1 100755
--- a/.scripts/cron/newsup
+++ b/.scripts/cron/newsup
@@ -8,9 +8,9 @@ ping -q -t 1 -c 1 `ip r | grep -m 1 default | cut -d ' ' -f 3` >/dev/null || exi
pgrep -x newsboat >/dev/null && /usr/bin/xdotool key --window "$(/usr/bin/xdotool search --name newsboat)" R && exit
-echo 🔃 > ~/.config/newsboat/.update
+echo 🔃 > /tmp/newsupdate
pkill -RTMIN+6 i3blocks
/usr/bin/newsboat -x reload
-rm -f ~/.config/newsboat/.update
+rm -f /tmp/newsupdate
pkill -RTMIN+6 i3blocks
/usr/bin/notify-send -i "$PIX/rss.svg" "RSS feed update complete."
diff --git a/.scripts/statusbar/news b/.scripts/statusbar/news
index 3c471a0..6c19d53 100755
--- a/.scripts/statusbar/news
+++ b/.scripts/statusbar/news
@@ -15,4 +15,4 @@ case $BLOCK_BUTTON in
<b>Note:</b> Only one instance of newsboat (including updates) may be running at a time." ;;
esac
- cat ~/.config/newsboat/.update 2>/dev/null || echo "$(newsboat -x print-unread | awk '{ print $1}' | sed s/^0$//g)$(cat ~/.config/newsboat/.update 2>/dev/null)"
+ cat /tmp/newsupdate 2>/dev/null || echo "$(newsboat -x print-unread | awk '{ print $1}' | sed s/^0$//g)$(cat ~/.config/newsboat/.update 2>/dev/null)"