diff --git a/modules/desktop/sway/home.nix b/modules/desktop/sway/home.nix index 51e4dfb..0a2bfbb 100644 --- a/modules/desktop/sway/home.nix +++ b/modules/desktop/sway/home.nix @@ -250,12 +250,12 @@ events = [ { event = "before-sleep"; command = "${pkgs.swaylock}/bin/swaylock"; } { event = "lock"; command = "${pkgs.swaylock}/bin/swaylock -fF"; } - { event = "after-resume"; command = "${pkgs.sway}/bin/swaymsg output * dpms on"; } - { event = "unlock"; command = "${pkgs.sway}/bin/swaymsg output * dpms on"; } + { event = "after-resume"; command = "${pkgs.sway}/bin/swaymsg 'output * dpms on'"; } + { event = "unlock"; command = "${pkgs.sway}/bin/swaymsg 'output * dpms on'"; } ]; timeouts = [ - { timeout = 600; command = "${pkgs.swaylock}/bin/swaylock -fF"; } - { timeout = 300; command = "${pkgs.sway}/bin/swaymsg output * dpms off"; resumeCommand = "${pkgs.sway}/bin/swaymsg output * dpms on"; } + { timeout = 300; command = "${pkgs.swaylock}/bin/swaylock -fF"; } + { timeout = 600; command = "${pkgs.sway}/bin/swaymsg 'output * dpms off'"; resumeCommand = "${pkgs.sway}/bin/swaymsg 'output * dpms on'"; } ]; }; }