remake dir structure for home-manager
This commit is contained in:
parent
9415d40508
commit
3151b79560
26 changed files with 9 additions and 9 deletions
22
home/features/desktop/hyprland/swayidle.nix
Normal file
22
home/features/desktop/hyprland/swayidle.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{ config, ... }:
|
||||
let
|
||||
swaylock = "${config.programs.swaylock.package}/bin/swaylock";
|
||||
in
|
||||
{
|
||||
services.swayidle = {
|
||||
enable = true;
|
||||
systemdTarget = "graphical-session.target";
|
||||
events = [
|
||||
{
|
||||
event = "before-sleep";
|
||||
command = "${swaylock} --daemonize";
|
||||
}
|
||||
];
|
||||
# timeouts = [
|
||||
# {
|
||||
# timeout = 4 * 60;
|
||||
# command = "${swaylock} --daemonize --grace 15";
|
||||
# }
|
||||
# ];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue