summaryrefslogblamecommitdiff
path: root/i3blocks-news.sh
blob: 024043a1dd475cab5417de6783bf5a1b5d99123b (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