Add dwmstatus-restart script as an example.

This commit is contained in:
Christoph Lohmann 2022-12-28 19:09:24 +01:00
parent f2dea576d5
commit a30f9f5bd1
1 changed files with 16 additions and 0 deletions

16
dwmstatus-restart Executable file
View File

@ -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