sway: Revert back to swaymsg for swayidle

This commit is contained in:
Erwin Boskma 2024-07-17 13:08:44 +02:00
parent f5de5bea15
commit b1bb4151cf
Signed by: erwin
SSH key fingerprint: SHA256:OCinH/khuGY1LA9RG8YLM8GNH6C1DDXBdy3SNE+I5Hw

View file

@ -347,10 +347,10 @@ in
timeouts = timeouts =
let let
poweroffOpts = builtins.concatStringsSep " " ( 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 " " ( 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 in
[ [
@ -360,8 +360,8 @@ in
} }
{ {
timeout = 1200; timeout = 1200;
command = "${pkgs.wlr-randr}/bin/wlr-randr ${poweroffOpts}"; command = "${cfg.package}/bin/swaymsg '${poweroffOpts}'";
resumeCommand = "${pkgs.wlr-randr}/bin/wlr-randr ${resumeOpts}"; resumeCommand = "${cfg.package}/bin/swaymsg '${resumeOpts}'";
} }
]; ];
}; };