summaryrefslogblamecommitdiff
path: root/i3blocks-news.sh
blob: 5d64a4750b41f38d57a8723a7f07d95a8cf69f07 (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 
printf "\n"