projects
/
dwm-status
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f2dea57
)
Add dwmstatus-restart script as an example.
author
Christoph Lohmann
<20h@r-36.net>
Wed, 28 Dec 2022 18:09:24 +0000
(19:09 +0100)
committer
Christoph Lohmann
<20h@r-36.net>
Wed, 28 Dec 2022 18:09:24 +0000
(19:09 +0100)
dwmstatus-restart
[new file with mode: 0755]
patch
|
blob
diff --git a/dwmstatus-restart
b/dwmstatus-restart
new file mode 100755
(executable)
index 0000000..
eec88d0
--- /dev/null
+++ b/
dwmstatus-restart
@@ -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
+