sway: Revert back to swaymsg for swayidle
This commit is contained in:
parent
f5de5bea15
commit
b1bb4151cf
1 changed files with 4 additions and 4 deletions
|
@ -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}'";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue