diff --git a/home-manager/modules/sway/default.nix b/home-manager/modules/sway/default.nix index bf3c9e6..89ad054 100644 --- a/home-manager/modules/sway/default.nix +++ b/home-manager/modules/sway/default.nix @@ -347,10 +347,10 @@ in timeouts = let poweroffOpts = builtins.concatStringsSep " " ( - builtins.map (name: "--output ${name} --off") (builtins.attrNames cfg.output) + builtins.map (name: "output ${name} power off") (builtins.attrNames cfg.output) ); resumeOpts = builtins.concatStringsSep " " ( - builtins.map (name: "--output ${name} --on") (builtins.attrNames cfg.output) + builtins.map (name: "output ${name} power on") (builtins.attrNames cfg.output) ); in [ @@ -360,8 +360,8 @@ in } { timeout = 1200; - command = "${pkgs.wlr-randr}/bin/wlr-randr ${poweroffOpts}"; - resumeCommand = "${pkgs.wlr-randr}/bin/wlr-randr ${resumeOpts}"; + command = "${cfg.package}/bin/swaymsg '${poweroffOpts}'"; + resumeCommand = "${cfg.package}/bin/swaymsg '${resumeOpts}'"; } ]; };