[wiki] [sites] [surf] Use kill in autorefresh script || Jochen Sprickerhof
commit 934bc8302da858da261a7a5e4bf6c8ed8e33c206
Author: Jochen Sprickerhof <git_AT_jochen.sprickerhof.de>
Date: Thu Nov 16 13:12:10 2017 +0100
[surf] Use kill in autorefresh script
diff --git a/surf.suckless.org/files/autorefresh.md b/surf.suckless.org/files/autorefresh.md
index da61799c..4d384ba7 100644
--- a/surf.suckless.org/files/autorefresh.md
+++ b/surf.suckless.org/files/autorefresh.md
_AT_@ -4,11 +4,8 @@ autorefresh
Simple script to auto refresh surf pages.
Launch the script again to stop auto reloading (easy to use with dmenu)
-Requires xdotools.
-
#!/bin/sh
# Simple script to refresh surf page
- # requires xdotool
# thuban_AT_singularity.fr
REFRESH=3
_AT_@ -23,7 +20,7 @@ Requires xdotools.
else
echo $$ > $LOCKFILE
while true; do
- xdotool search --class surf key --window %_AT_ ctrl+r
+ kill -HUP $1
sleep $REFRESH
done
fi
Received on Thu Nov 16 2017 - 13:12:22 CET
This archive was generated by hypermail 2.3.0
: Thu Nov 16 2017 - 13:24:26 CET