diff options
author | Christoph Lohmann <20h@r-36.net> | 2022-12-28 19:09:24 +0100 |
---|---|---|
committer | Christoph Lohmann <20h@r-36.net> | 2022-12-28 19:09:24 +0100 |
commit | a30f9f5bd1c9c3fcd96b32e3919206df0e9306bf (patch) | |
tree | 335dd3879c167a94fd1774e2739aafa63f6f55d0 | |
parent | f2dea576d5051a860a6708c6bd170d35be18700d (diff) |
Add dwmstatus-restart script as an example.
-rwxr-xr-x | dwmstatus-restart | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/dwmstatus-restart b/dwmstatus-restart new file mode 100755 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 + |