From ac7be2a880c8673e94efb81181cc7c3102cd1efa Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Mon, 4 Apr 2022 09:41:26 +0200 Subject: [PATCH] Use resumeCommand to enable the display again --- home-manager/modules/sway/default.nix | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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'"; } ]; };