newsboat icon moved to /tmp/
This commit is contained in:
parent
bbe1acb178
commit
66aaa1294c
2 changed files with 3 additions and 3 deletions
|
@ -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
|
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
|
pkill -RTMIN+6 i3blocks
|
||||||
/usr/bin/newsboat -x reload
|
/usr/bin/newsboat -x reload
|
||||||
rm -f ~/.config/newsboat/.update
|
rm -f /tmp/newsupdate
|
||||||
pkill -RTMIN+6 i3blocks
|
pkill -RTMIN+6 i3blocks
|
||||||
/usr/bin/notify-send -i "$PIX/rss.svg" "RSS feed update complete."
|
/usr/bin/notify-send -i "$PIX/rss.svg" "RSS feed update complete."
|
||||||
|
|
|
@ -15,4 +15,4 @@ case $BLOCK_BUTTON in
|
||||||
<b>Note:</b> Only one instance of newsboat (including updates) may be running at a time." ;;
|
<b>Note:</b> Only one instance of newsboat (including updates) may be running at a time." ;;
|
||||||
esac
|
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)"
|
||||||
|
|
Loading…
Reference in a new issue