feat(wip): add swayidle

This commit is contained in:
mandlm 2023-09-26 13:06:56 +02:00
parent 6672763d1d
commit 22680da4dd
Signed by: mandlm
GPG Key ID: 4AA25D647AA54CC7

View File

@ -38,6 +38,17 @@ in
}; };
}; };
services.swayidle = {
enable = true;
events = [
{ event = "before-sleep"; command = "${pkgs.swaylock-fancy}/bin/swaylock-fancy"; }
];
timeouts = [
{ timeout = 60; command = "swaymsg \"output * power off\""; resumeCommand = "swaymsg \"output * power on\""; }
{ timeout = 90; command = "${pkgs.swaylock-fancy}/bin/swaylock-fancy"; }
];
};
wayland.windowManager.sway = { wayland.windowManager.sway = {
enable = true; enable = true;