diff options
author | Tom Barrett <tom@tombarrett.xyz> | 2023-02-12 17:21:59 +0100 |
---|---|---|
committer | Tom Barrett <tom@tombarrett.xyz> | 2023-02-12 17:21:59 +0100 |
commit | cc90fb97a47e4049e801cc3e5055b9b704e84158 (patch) | |
tree | 69c3e504b737d4ea660b45c652fb5cbfc9d2b663 /dwmstatus-restart | |
parent | 2867e92e7f435f8767b14a0c5b4e9b5cf4d81331 (diff) | |
parent | 81cdc8f4a2528374842049c214937349b30fbebc (diff) |
Merge git://git.suckless.org/dwmstatus
Diffstat (limited to 'dwmstatus-restart')
-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 + |