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,17 +332,23 @@ in
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
timeouts = [
|
timeouts =
|
||||||
{
|
let
|
||||||
timeout = 900;
|
resumeMessages = builtins.concatStringsSep ", " (
|
||||||
command = swaylockcmd;
|
builtins.map (name: "output ${name} power on") (builtins.attrNames cfg.output)
|
||||||
}
|
);
|
||||||
{
|
in
|
||||||
timeout = 1200;
|
[
|
||||||
command = "${pkgs.sway}/bin/swaymsg 'output * power off'";
|
{
|
||||||
resumeCommand = "${pkgs.sway}/bin/swaymsg 'output * power on'";
|
timeout = 900;
|
||||||
}
|
command = swaylockcmd;
|
||||||
];
|
}
|
||||||
|
{
|
||||||
|
timeout = 1200;
|
||||||
|
command = "${pkgs.sway}/bin/swaymsg 'output * power off'";
|
||||||
|
resumeCommand = "${pkgs.sway}/bin/swaymsg '${resumeMessages}'";
|
||||||
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue