From c7a02e12ec367af2cfcf055ee45a74d5a88260e1 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sat, 15 Jun 2024 11:30:17 -0400 Subject: [PATCH] randomWallpaper: use [[]] instead of [] --- homeManagerModules/desktop/hyprland/default.nix | 2 +- homeManagerModules/desktop/sway/randomWallpaper.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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