summaryrefslogtreecommitdiff
path: root/newsboatreload.sh
diff options
context:
space:
mode:
authormono-b <monoblanco@DRAINERDOMAIN.localdomain>2022-12-18 23:00:24 -0300
committermono-b <monoblanco@DRAINERDOMAIN.localdomain>2022-12-18 23:00:24 -0300
commit0a043dbb7259cc59ac56b31573469f445a7921ed (patch)
tree28e87b1b7bbc035fbc467d5a7fc63204960dc247 /newsboatreload.sh
up
Diffstat (limited to 'newsboatreload.sh')
-rwxr-xr-xnewsboatreload.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/newsboatreload.sh b/newsboatreload.sh
new file mode 100755
index 0000000..2abcddd
--- /dev/null
+++ b/newsboatreload.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+while true; do
+ kill $(pidof newsboat)
+ rm $XDG_CONFIG_HOME/newsboat/queue
+ $TERMINAL -e newsboat
+ if [[ $? == 0 ]] ; then
+ exec newsboat && break
+ else
+ break
+ fi
+done