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



                                                  
                                                                                          
#!/bin/sh
icon=󰎕

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