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 =
|
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}'";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue