[hackers] [dwmstatus] Add dwmstatus-restart script as an example. || Christoph Lohmann
commit a30f9f5bd1c9c3fcd96b32e3919206df0e9306bf
Author: Christoph Lohmann <20h_AT_r-36.net>
AuthorDate: Wed Dec 28 19:09:24 2022 +0100
Commit: Christoph Lohmann <20h_AT_r-36.net>
CommitDate: Wed Dec 28 19:09:24 2022 +0100
Add dwmstatus-restart script as an example.
diff --git a/dwmstatus-restart b/dwmstatus-restart
new file mode 100755
index 0000000..eec88d0
--- /dev/null
+++ b/dwmstatus-restart
_AT_@ -0,0 +1,16 @@
+#!/bin/sh
+
+if pgrep -x dwmstatus 2>&1 >/dev/null;
+then
+ printf "Killing old dwmstatus instances ... "
+ pkill -KILL -x dwmstatus
+ printf "done.\n"
+fi
+
+if [ -e $HOME/.xinitrc ];
+then
+ cat $HOME/.xinitrc | grep dwmstatus | sh
+else
+ dwmstatus &
+fi
+
Received on Wed Dec 28 2022 - 19:09:25 CET
This archive was generated by hypermail 2.3.0
: Wed Dec 28 2022 - 19:12:35 CET