summaryrefslogtreecommitdiff
path: root/dwmstatus-restart
blob: eec88d05ef65f924e5e4e07533f5d175e8b5fa2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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