From 4025848a7bbcc789b194940fc3c2aa9020b1aaa1 Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Mon, 6 Apr 2020 09:23:11 +0300 Subject: show unread rss articles on waybar --- dotfiles/.local/bin/barnewsstatus | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 dotfiles/.local/bin/barnewsstatus (limited to 'dotfiles/.local/bin/barnewsstatus') 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 -- cgit v1.2.3