Use resumeCommand to enable the display again

This commit is contained in:
Erwin Boskma 2022-04-04 09:41:26 +02:00
parent 5bef752dd3
commit ac7be2a880
Signed by: erwin
GPG key ID: 270B20D17394F7E5

View file

@ -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'";
} }
]; ];
}; };