7 lines
174 B
Bash
Executable File
7 lines
174 B
Bash
Executable File
#!/bin/sh
|
|
num="$(newsboat -x print-unread | cut -f1 -d ' ' )"
|
|
if ! pgrep newsboat > /dev/null ; then
|
|
[ "$num" -gt 0 ] 2>/dev/null && printf "📰%s" "$num"
|
|
printf '\n'
|
|
fi
|