dotfiles/.local/bin/statusbar/news

7 lines
162 B
Plaintext
Raw Normal View History

#!/bin/sh
num="$(newsboat -x print-unread | cut -f1 -d ' ' )"
if ! pgrep newsboat > /dev/null ; then
[ "$num" = "0" ] || printf "📰%s" "$num"
printf '\n'
fi