dwmbar now reset with cronjob
This commit is contained in:
parent
97739a7b8e
commit
cc1eab3e76
|
@ -196,6 +196,6 @@ while :; do
|
|||
# again. We run sleep in the background and use wait until it finishes,
|
||||
# because traps can interrupt wait immediately, but they can't do that
|
||||
# with sleep.
|
||||
sleep 60 &
|
||||
sleep 120 &
|
||||
wait
|
||||
done
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
p_num=$(pgrep busybox | head)
|
||||
echo "$p_num"
|
||||
kill -s 5 $p_num
|
||||
p_num=$(pgrep -a busybox | grep "busybox ash /home/initega/bin/dwmbar.sh" |
|
||||
cut -d ' ' -f 1)
|
||||
# echo "$p_num"
|
||||
[ -n "$p_num" ] && kill -s 5 "$p_num"
|
||||
|
|
Loading…
Reference in New Issue