dotfiles/.local/bin/statusbar/news
2020-07-17 15:05:59 +02:00

5 lines
222 B
Bash
Executable File

#!/bin/bash
newsboat -x reload
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)")
[ "$num" = "" ] || echo 📰$num