From 273d1de083bfeda352563e0c5369f09c3ba354c0 Mon Sep 17 00:00:00 2001 From: Kabbone Date: Sat, 19 Nov 2022 20:35:03 +0100 Subject: [PATCH] sway: fix lock and dpms --- modules/desktop/sway/home.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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'"; } ]; }; }