From 4c833eec047df8c0c1a812cb95c83e4bb7b9d4d1 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sun, 4 Aug 2024 22:27:00 -0400 Subject: [PATCH] randomWallpaper: don't exit or error when no monitors are available --- homeManagerModules/services/randomWallpaper/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeManagerModules/services/randomWallpaper/default.nix b/homeManagerModules/services/randomWallpaper/default.nix index 6c9d7fba..22b2ffb7 100644 --- a/homeManagerModules/services/randomWallpaper/default.nix +++ b/homeManagerModules/services/randomWallpaper/default.nix @@ -27,7 +27,7 @@ if Dir.exist?(directory) loop do active_monitors = get_outputs - break if active_monitors.empty? + next if active_monitors.empty? added_monitors = active_monitors - known_monitors.keys removed_monitors = known_monitors.keys - active_monitors