diff --git a/.config/i3blocks/news/news b/.config/i3blocks/news/news index f2b35f1..f20484c 100755 --- a/.config/i3blocks/news/news +++ b/.config/i3blocks/news/news @@ -1,3 +1,5 @@ #!/bin/sh -newsboat -x print-unread | cut -d' ' -f1 +lastfile=/tmp/lastnewscount.$USER +last=$(cat $lastfile) +(newsboat -x print-unread || echo $last) | cut -d' ' -f1 | tee $lastfile