swya/hyprland: check for OLD_PIDS before pausing

This commit is contained in:
Aly Raffauf 2024-05-26 15:58:01 -04:00
parent 973fa2f27f
commit 978ebba43e
2 changed files with 6 additions and 2 deletions

View file

@ -20,7 +20,9 @@
NEW_PIDS+=($!) NEW_PIDS+=($!)
done done
sleep 5 if [ ''${OLD_PIDS[@]} -gt 0 ]; then
sleep 5
fi
for pid in ''${OLD_PIDS[@]}; do for pid in ''${OLD_PIDS[@]}; do
kill $pid kill $pid

View file

@ -21,7 +21,9 @@
NEW_PIDS+=($!) NEW_PIDS+=($!)
done done
sleep 5 if [ ''${OLD_PIDS[@]} -gt 0 ]; then
sleep 5
fi
for pid in ''${OLD_PIDS[@]}; do for pid in ''${OLD_PIDS[@]}; do
kill $pid kill $pid