diff options
author | Yaroslav <contact@yaroslavps.com> | 2020-04-06 09:23:11 +0300 |
---|---|---|
committer | Yaroslav <contact@yaroslavps.com> | 2020-04-06 09:23:11 +0300 |
commit | 4025848a7bbcc789b194940fc3c2aa9020b1aaa1 (patch) | |
tree | aac8b8c4a6d2ea4867e05c958d0d832c618a94ac /dotfiles/.local/bin/barnewsstatus | |
parent | 4e7f7cd77cb2d66aefa7ab574d1f6edf66482f41 (diff) | |
download | swayrice-4025848a7bbcc789b194940fc3c2aa9020b1aaa1.tar.gz swayrice-4025848a7bbcc789b194940fc3c2aa9020b1aaa1.zip |
show unread rss articles on waybar
Diffstat (limited to 'dotfiles/.local/bin/barnewsstatus')
-rwxr-xr-x | dotfiles/.local/bin/barnewsstatus | 12 |
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 |