feat(wip): add swayidle
This commit is contained in:
parent
6672763d1d
commit
22680da4dd
@ -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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user