Reset dwm bat now works as before but sleep 69d

This commit is contained in:
i.ortega 2020-05-06 12:31:11 +02:00
parent a5e1513b61
commit ec74ae1e16
2 changed files with 2 additions and 3 deletions

View File

@ -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 120 &
sleep 69d &
wait
done

View File

@ -1,6 +1,5 @@
#!/usr/bin/env sh
p_num=$(pgrep -a busybox | grep "busybox ash /home/initega/bin/dwmbar.sh" |
cut -d ' ' -f 1)
p_num=$(pgrep -a busybox | grep "busybox .*/dwmbar.sh" | cut -d ' ' -f 1)
# echo "$p_num"
[ -n "$p_num" ] && kill -s 5 "$p_num"