2020-07-04 14:23:27 +02:00
|
|
|
#!/bin/bash
|
2020-07-17 15:05:59 +02:00
|
|
|
newsboat -x reload
|
2020-07-04 14:23:27 +02:00
|
|
|
num=$( cat /tmp/newsupdate 2>/dev/null || echo "$(newsboat -x print-unread | awk '{ print $1}' | sed s/^0$//g)$(cat ~/.config/newsboat/.update 2>/dev/null)")
|
2020-09-17 13:44:38 +02:00
|
|
|
[ "$num" = "" ] || printf "📰%s" "$num"
|
|
|
|
printf '\n'
|