dotfiles/.local/bin/statusbar/news

7 lines
163 B
Bash
Executable File

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