diff --git a/homeManagerModules/desktop/hyprland/default.nix b/homeManagerModules/desktop/hyprland/default.nix index b4fc7f3a..0b94d700 100644 --- a/homeManagerModules/desktop/hyprland/default.nix +++ b/homeManagerModules/desktop/hyprland/default.nix @@ -44,7 +44,7 @@ NEW_PIDS+=($!) done - if [ ''${OLD_PIDS[@]} -gt 0 ]; then + if [[ ''${OLD_PIDS[@]} -gt 0 ]]; then sleep 5 for pid in ''${OLD_PIDS[@]}; do kill $pid diff --git a/homeManagerModules/desktop/sway/randomWallpaper.nix b/homeManagerModules/desktop/sway/randomWallpaper.nix index f0bd62ce..885997db 100644 --- a/homeManagerModules/desktop/sway/randomWallpaper.nix +++ b/homeManagerModules/desktop/sway/randomWallpaper.nix @@ -21,7 +21,7 @@ NEW_PIDS+=($!) done - if [ ''${OLD_PIDS[@]} -gt 0 ]; then + if [[ ''${OLD_PIDS[@]} -gt 0 ]]; then sleep 5 fi