aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin/barnewsstatus
diff options
context:
space:
mode:
Diffstat (limited to 'dotfiles/.local/bin/barnewsstatus')
-rwxr-xr-xdotfiles/.local/bin/barnewsstatus12
1 files changed, 12 insertions, 0 deletions
diff --git a/dotfiles/.local/bin/barnewsstatus b/dotfiles/.local/bin/barnewsstatus
new file mode 100755
index 0000000..77457aa
--- /dev/null
+++ b/dotfiles/.local/bin/barnewsstatus
@@ -0,0 +1,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