From 52965c7da8f3557a2fe8d30b6ac064fd42903b2d Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Fri, 2 Aug 2024 15:46:16 -0400 Subject: [PATCH] home/services/swayidle: fixed resume command --- homeManagerModules/services/swayidle/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/homeManagerModules/services/swayidle/default.nix b/homeManagerModules/services/swayidle/default.nix index 5446746a..882b2d6c 100644 --- a/homeManagerModules/services/swayidle/default.nix +++ b/homeManagerModules/services/swayidle/default.nix @@ -31,7 +31,8 @@ in { [ { timeout = 120; - command = "${lib.getExe pkgs.brightnessctl} -s set 10' resume '${lib.getExe pkgs.brightnessctl} -r"; + command = "${lib.getExe pkgs.brightnessctl} -s set 10"; + resumeCommand = "${lib.getExe pkgs.brightnessctl} -r"; } { timeout = 600; @@ -50,12 +51,14 @@ in { ++ lib.optional (!cfg.desktop.autoSuspend && cfg.desktop.hyprland.enable) { timeout = 630; - command = "${hyprctl} dispatch dpms off' resume '${hyprctl} dispatch dpms on'"; + command = "${hyprctl} dispatch dpms off"; + resumeCommand = "${hyprctl} dispatch dpms on"; } ++ lib.optional (!cfg.desktop.autoSuspend && cfg.desktop.sway.enable) { timeout = 630; - command = "${swaymsg} \"output * dpms off\"' resume '${swaymsg} \"output * dpms on\""; + command = "${swaymsg} \"output * dpms off\""; + resumeCommand = "${swaymsg} \"output * dpms on\""; }; };