diff --git a/home-manager/modules/sway/default.nix b/home-manager/modules/sway/default.nix index 084ff2c..aa430a4 100644 --- a/home-manager/modules/sway/default.nix +++ b/home-manager/modules/sway/default.nix @@ -273,12 +273,6 @@ in { services = { swayidle = { enable = true; - events = [ - { - event = "after-resume"; - command = "${pkgs.sway}/bin/swaymsg 'output * dpms on'"; - } - ]; timeouts = [ { timeout = 900; @@ -287,6 +281,7 @@ in { { timeout = 1200; command = "${pkgs.sway}/bin/swaymsg 'output * dpms off'"; + resumeCommand = "${pkgs.sway}/bin/swaymsg 'output * dpms on'"; } ]; };