From cd2295ad7c1d7b75ec3ffef0093eeb8b05dd357f Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Wed, 6 Oct 2021 19:41:00 +0200 Subject: [PATCH] sway: Fix DPMS key binding --- users/simon/modules/sway/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/users/simon/modules/sway/default.nix b/users/simon/modules/sway/default.nix index 74ba7e5..4d8b3e8 100644 --- a/users/simon/modules/sway/default.nix +++ b/users/simon/modules/sway/default.nix @@ -159,7 +159,7 @@ in # Locking and DPMS "${cfg.modifier}+y" = "exec ${pkgs.swaylock}/bin/swaylock -f -i ${wallpaper}"; - "--locked ${cfg.modifier}+q" = ''exec 'test $(swaymsg -t get_outputs | ${pkgs.jq}/bin/jq "[.[].dpms] | any") = "true" && swaymsg "output * dpms off" || swaymsg "output * dpms on"''; + "--no-repeat --locked ${cfg.modifier}+q" = ''exec 'test $(swaymsg -t get_outputs | ${pkgs.jq}/bin/jq "[.[].dpms] | any") = "true" && swaymsg "output * dpms off" || swaymsg "output * dpms on"''; }; bars = [ ]; # managed as systemd user unit