mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 12:23:56 -05:00
swya/hyprland: check for OLD_PIDS before pausing
This commit is contained in:
parent
973fa2f27f
commit
978ebba43e
|
@ -20,7 +20,9 @@
|
||||||
NEW_PIDS+=($!)
|
NEW_PIDS+=($!)
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [ ''${OLD_PIDS[@]} -gt 0 ]; then
|
||||||
sleep 5
|
sleep 5
|
||||||
|
fi
|
||||||
|
|
||||||
for pid in ''${OLD_PIDS[@]}; do
|
for pid in ''${OLD_PIDS[@]}; do
|
||||||
kill $pid
|
kill $pid
|
||||||
|
|
|
@ -21,7 +21,9 @@
|
||||||
NEW_PIDS+=($!)
|
NEW_PIDS+=($!)
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [ ''${OLD_PIDS[@]} -gt 0 ]; then
|
||||||
sleep 5
|
sleep 5
|
||||||
|
fi
|
||||||
|
|
||||||
for pid in ''${OLD_PIDS[@]}; do
|
for pid in ''${OLD_PIDS[@]}; do
|
||||||
kill $pid
|
kill $pid
|
||||||
|
|
Loading…
Reference in a new issue