summaryrefslogtreecommitdiff
path: root/.local/bin/dwmbar/dwmb-news
blob: 4a337025785a0fe8def673bdff24189dc3f33a41 (plain)
1
2
3
4
#!/bin/sh

nb=$(cat /tmp/newsupdate 2>/dev/null || echo "$(newsboat -x print-unread | awk '{ if($1>0) print " " $1}')$(cat "${XDG_CONFIG_HOME:-$HOME/.config}"/newsboat/.update 2>/dev/null) ")
echo " $nb"