summaryrefslogtreecommitdiffstats
path: root/.scripts/newsup
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2018-09-29 16:02:40 -0400
committerLuke Smith <luke@lukesmith.xyz>2018-09-29 16:02:40 -0400
commit13b6ab3dc2f1a2c100b26af963b495a9e563e5c2 (patch)
tree9f52c4cabe59fe8ccaa53ff5601846e9589351fc /.scripts/newsup
parent30f8c087c54c09b69a88eed53e45b48d50104ffd (diff)
downloadeibhear-13b6ab3dc2f1a2c100b26af963b495a9e563e5c2.tar.gz
eibhear-13b6ab3dc2f1a2c100b26af963b495a9e563e5c2.tar.zst
eibhear-13b6ab3dc2f1a2c100b26af963b495a9e563e5c2.zip
cron-able newsboat update script added for i3blocks
Diffstat (limited to '.scripts/newsup')
-rwxr-xr-x.scripts/newsup9
1 files changed, 9 insertions, 0 deletions
diff --git a/.scripts/newsup b/.scripts/newsup
new file mode 100755
index 0000000..986524a
--- /dev/null
+++ b/.scripts/newsup
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+echo "📰 🔃" > ~/.newsup
+pkill -RTMIN+6 i3blocks
+printf "Loading new RSS entries for newsboat...\\n"
+/usr/bin/newsboat -x reload &&
+ printf "Done.\\n"
+echo "" > ~/.newsup
+pkill -RTMIN+6 i3blocks