projects
/
dwm-status
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Close fd if there was an empty return.
[dwm-status]
/
dwmstatus-restart
#!/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