dwmstatus-restart - dwmstatus - A simple dwm status application in C.
(HTM) git clone git://git.suckless.org/dwmstatus
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
dwmstatus-restart (415B)
---
1 #!/bin/sh
2
3 if pgrep -x dwmstatus 2>&1 >/dev/null;
4 then
5 printf "Killing old dwmstatus instances ... "
6 pkill -KILL -x dwmstatus
7 printf "done.\n"
8 fi
9
10 if [ -e $HOME/.xinitrc ];
11 then
12 # In case some .xinitrc exists, do try to run dwmstatus as people
13 # run it in their .xinitrc. This is in case some error
14 # redirection is done or logging.
15 {
16 grep dwmstatus $HOME/.xinitrc | sh
17 } &
18 else
19 {
20 dwmstatus &
21 } &
22 fi
23