summaryrefslogblamecommitdiff
path: root/i3blocks-news.sh
blob: 290fb04a838b1feca7e3d3ef99298c879f9d22fd (plain) (tree)
1
2
3
4
5
6



                                                  

                                                                                           
#!/bin/sh
icon=󰎕

unread=$(newsboat -x print-unread | cut -d' ' -f1)
[ $unread -gt 0 ] && printf "%s%s" $icon $unread && notify-send "$unread unread article(s)"
printf "\n"