dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit e20c34f71736dd9aee083f858086c872d3a993ef
parent 8199bbcf62724e411ccda750f679f16b880711d7
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Tue,  8 Jun 2021 14:13:21 +0200

newsrefreshd: show number of new articles

Diffstat:
Mscripts/newsrefreshd | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/scripts/newsrefreshd b/scripts/newsrefreshd @@ -15,5 +15,7 @@ case "$os" in ;; esac +unreadbefore="$(newsboat -x print-unread | cut -d' ' -f1)" newsboat -x reload 2>&1 || notidie "Newsboat: error reloading" "Unable to reload" -newsboat -x print-unread | xargs -I{} notify 'Newsboat reloaded' "{}" news +unreadafter="$(newsboat -x print-unread | cut -d' ' -f1)" +notify 'Newsboat reloaded' "$((unreadafter-unreadbefore)) new articles ($unreadafter total)" news