2020-12-29 16:44:12 +01:00
|
|
|
#!/bin/sh
|
2020-12-19 16:04:51 +01:00
|
|
|
num="$(newsboat -x print-unread | cut -f1 -d ' ' )"
|
|
|
|
if ! pgrep newsboat > /dev/null ; then
|
2021-05-12 14:57:44 +02:00
|
|
|
[ "$num" -gt 0 ] 2>/dev/null && printf "📰%s" "$num"
|
2020-12-19 16:04:51 +01:00
|
|
|
printf '\n'
|
|
|
|
fi
|