sway: Power on individual displays so order maybe is preserved
This commit is contained in:
parent
2c9f3cc24d
commit
441a7f8104
1 changed files with 17 additions and 11 deletions
|
@ -332,7 +332,13 @@ in
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
timeouts = [
|
timeouts =
|
||||||
|
let
|
||||||
|
resumeMessages = builtins.concatStringsSep ", " (
|
||||||
|
builtins.map (name: "output ${name} power on") (builtins.attrNames cfg.output)
|
||||||
|
);
|
||||||
|
in
|
||||||
|
[
|
||||||
{
|
{
|
||||||
timeout = 900;
|
timeout = 900;
|
||||||
command = swaylockcmd;
|
command = swaylockcmd;
|
||||||
|
@ -340,7 +346,7 @@ in
|
||||||
{
|
{
|
||||||
timeout = 1200;
|
timeout = 1200;
|
||||||
command = "${pkgs.sway}/bin/swaymsg 'output * power off'";
|
command = "${pkgs.sway}/bin/swaymsg 'output * power off'";
|
||||||
resumeCommand = "${pkgs.sway}/bin/swaymsg 'output * power on'";
|
resumeCommand = "${pkgs.sway}/bin/swaymsg '${resumeMessages}'";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue