aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin/barnewsstatus
blob: 77457aa33e09ac433e2afb044ea88a10ddd09b32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

if [ -f ~/.cache/newssynclive ]; then
  echo "syncing"
  exit
fi

unreadno=$(newsboat -x print-unread | cut -f1 -d' ')

if [ $unreadno -gt 0 ]; then
  echo $unreadno
fi