update newsboat cron
prithugoswami prithugoswami524@gmail.com
Fri, 04 Jan 2019 12:15:44 +0530
2 files changed,
4 insertions(+),
4 deletions(-)
M
bin/cron/newsboat-cron
→
bin/cron/newsboat-cron
@@ -2,16 +2,16 @@ #!/bin/sh
ping -q -c 1 8.8.8.8 >/dev/null || exit count=0 -echo -e '\uf2f1' > $HOME/.newsboat/unread && pkill -SIGRTMIN+10 i3blocks +echo -e '\uf2f1' > $HOME/.config/newsboat/unread && pkill -SIGRTMIN+10 i3blocks count=$(newsboat -x "reload" && newsboat -x "print-unread" | cut -d ' ' -f1) if [ $count -gt 0 ] then - echo $count > $HOME/.newsboat/unread + echo $count > $HOME/.config/newsboat/unread pkill -SIGRTMIN+10 i3blocks notify-send "$count unread RSS feeds" elif [ $count -eq 0 ] then - echo $count > $HOME/.newsboat/unread + echo $count > $HOME/.config/newsboat/unread pkill -SIGRTMIN+10 i3blocks fi
M
i3blocks/newsboat
→
i3blocks/newsboat
@@ -1,6 +1,6 @@
#!/bin/sh icon=$(echo -en "<span font='Font Awesome 5 Free'>\uf09e</span>") -count=$(cat $HOME/.newsboat/unread) +count=$(cat $HOME/.config/newsboat/unread) case $BLOCK_BUTTON in 1) setsid st -e newsboat &&