Use resumeCommand to enable the display again
This commit is contained in:
parent
5bef752dd3
commit
ac7be2a880
1 changed files with 1 additions and 6 deletions
|
@ -273,12 +273,6 @@ in {
|
||||||
services = {
|
services = {
|
||||||
swayidle = {
|
swayidle = {
|
||||||
enable = true;
|
enable = true;
|
||||||
events = [
|
|
||||||
{
|
|
||||||
event = "after-resume";
|
|
||||||
command = "${pkgs.sway}/bin/swaymsg 'output * dpms on'";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
timeouts = [
|
timeouts = [
|
||||||
{
|
{
|
||||||
timeout = 900;
|
timeout = 900;
|
||||||
|
@ -287,6 +281,7 @@ in {
|
||||||
{
|
{
|
||||||
timeout = 1200;
|
timeout = 1200;
|
||||||
command = "${pkgs.sway}/bin/swaymsg 'output * dpms off'";
|
command = "${pkgs.sway}/bin/swaymsg 'output * dpms off'";
|
||||||
|
resumeCommand = "${pkgs.sway}/bin/swaymsg 'output * dpms on'";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue