Add dwmstatus-restart script as an example.
[dwm-status] / dwmstatus-restart
CommitLineData
a30f9f5b
CL
1#!/bin/sh
2
3if pgrep -x dwmstatus 2>&1 >/dev/null;
4then
5 printf "Killing old dwmstatus instances ... "
6 pkill -KILL -x dwmstatus
7 printf "done.\n"
8fi
9
10if [ -e $HOME/.xinitrc ];
11then
12 cat $HOME/.xinitrc | grep dwmstatus | sh
13else
14 dwmstatus &
15fi
16