aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin/newssync
diff options
context:
space:
mode:
authorYaroslav <contact@yaroslavps.com>2020-04-06 09:23:11 +0300
committerYaroslav <contact@yaroslavps.com>2020-04-06 09:23:11 +0300
commit4025848a7bbcc789b194940fc3c2aa9020b1aaa1 (patch)
treeaac8b8c4a6d2ea4867e05c958d0d832c618a94ac /dotfiles/.local/bin/newssync
parent4e7f7cd77cb2d66aefa7ab574d1f6edf66482f41 (diff)
downloadswayrice-4025848a7bbcc789b194940fc3c2aa9020b1aaa1.tar.gz
swayrice-4025848a7bbcc789b194940fc3c2aa9020b1aaa1.zip
show unread rss articles on waybar
Diffstat (limited to 'dotfiles/.local/bin/newssync')
-rwxr-xr-xdotfiles/.local/bin/newssync13
1 files changed, 13 insertions, 0 deletions
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