create homes/modules/wm

This commit is contained in:
Emile Clark-Boman 2025-08-31 15:06:03 +10:00
parent 91f1033c9e
commit d1cfd55e67
3 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,29 @@
{
config,
pkgs,
...
}: {
services.hypridle = {
enable = true;
settings = {
general = {
ignore_dbus_inhibit = false;
lock_cmd = "pidof hyprlock || ${pkgs.hyprlock}/bin/hyprlock";
before_sleep_cmd = "loginctl lock-session";
after_sleep_cmd = "hyprctl dispatch dpms on";
};
listener = [
{
timeout = 600;
on-timeout = "pidof hyprlock || ${pkgs.hyprlock}/bin/hyprlock";
}
{
timeout = 660;
on-timeout = "systemctl suspend";
}
];
};
};
}