This commit is contained in:
Filippo Berto 2023-11-17 14:57:34 +01:00
parent b74916095a
commit dda78546c9
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056
3 changed files with 14 additions and 1 deletions

12
modules/hm/swayidle.nix Normal file
View file

@ -0,0 +1,12 @@
{ pkgs, ... }: {
services.swayidle = {
enable = true;
events = [
{ event = "before-sleep"; command = "${pkgs.way-lockscreen}/bin/way-lockscreen"; }
{ event = "lock"; command = "${pkgs.way-lockscreen}/bin/way-lockscreen"; }
];
timeouts = [
{ timeout = 60; command = "${pkgs.way-lockscreen}/bin/way-lockscreen"; }
];
};
}