all repos — dotfiles @ 58546a4fd3c355caf6d47ce0ec165203a9fbb7a0

linux dotfiles

update newsboat cron
prithugoswami prithugoswami524@gmail.com
Fri, 04 Jan 2019 12:15:44 +0530
commit

58546a4fd3c355caf6d47ce0ec165203a9fbb7a0

parent

35c5660a1f128f66bc137be80192c3c8dc5bd703

2 files changed, 4 insertions(+), 4 deletions(-)

jump to
M bin/cron/newsboat-cronbin/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/newsboati3blocks/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 &&