dotfiles/.local/bin/statusbar/news

7 lines
163 B
Plaintext
Raw Normal View History

2020-07-04 14:23:27 +02:00
#!/bin/bash
num="$(newsboat -x print-unread | cut -f1 -d ' ' )"
if ! pgrep newsboat > /dev/null ; then
[ "$num" = "" ] || printf "📰%s" "$num"
printf '\n'
fi