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/newssync | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 dotfiles/.local/bin/newssync (limited to 'dotfiles/.local/bin/newssync') diff --git a/dotfiles/.local/bin/newssync b/dotfiles/.local/bin/newssync new file mode 100755 index 0000000..0c0e866 --- /dev/null +++ b/dotfiles/.local/bin/newssync @@ -0,0 +1,13 @@ +#!/bin/sh + +ping -q -c 1 1.1.1.1 > /dev/null || exit + +. ~/.cache/sessionenv + +touch ~/.cache/newssynclive +killall -42 waybar + +newsboat -x reload || true + +rm -f ~/.cache/newssynclive +killall -42 waybar -- cgit v1.2.3