Swayidle
This commit is contained in:
parent
b74916095a
commit
dda78546c9
3 changed files with 14 additions and 1 deletions
12
modules/hm/swayidle.nix
Normal file
12
modules/hm/swayidle.nix
Normal 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"; }
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue