Auto-commit: 2026-01-05 19:52:54

This commit is contained in:
2026-01-05 19:52:54 +00:00
parent 27dd68f86b
commit 98358e964c
15 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
{ lib, nixosConfig, ... }:
let
cfg = nixosConfig.my.desktop;
in
{
services.hypridle = lib.mkIf (cfg.enable && cfg.hyprland.enable) {
enable = true;
systemdTarget = "hyprland-session.target";
settings = {
general = {
after_sleep_cmd = "hyprctl dispatch dpms on";
ignore_dbus_inhibit = false;
lock_cmd = "hyprlock";
};
listener = [
{
timeout = 300; # 2mins
on-timeout = "hyprctl dispatch dpms off";
on-resume = "hyprctl dispatch dpms on";
}
];
};
};
}