dotfiles/.local/bin/statusbar/sb-news

7 lines
173 B
Plaintext
Raw Normal View History

#!/bin/sh
num="$(newsboat -x print-unread | cut -f1 -d ' ' )"
if ! pgrep newsboat > /dev/null ; then
2023-10-13 12:05:40 +02:00
[ "$num" -gt 0 ] 2>/dev/null && printf "%s" "$num"
printf '\n'
fi