From 66aaa1294c9b21ff5ed37575dc85c969ff5174f7 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sun, 10 Mar 2019 17:55:19 -0400 Subject: [PATCH] newsboat icon moved to /tmp/ --- .scripts/cron/newsup | 4 ++-- .scripts/statusbar/news | 2 +- 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 Note: 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)"