nix-config/home/hyprland/hypridle.nix

33 lines
766 B
Nix
Raw Normal View History

2025-03-27 12:54:14 +01:00
{ pkgs, ... }:
{
# Hyprland and related packages
home.packages = with pkgs; [
hypridle
];
# Hypridle configuration
2025-03-27 13:11:56 +01:00
services.hypridle = {
enable = true;
settings = {
general = {
after_sleep_cmd = "hyprctl dispatch dpms on";
ignore_dbus_inhibit = false;
lock_cmd = "hyprlock";
};
2025-03-27 12:54:14 +01:00
2025-03-27 13:11:56 +01:00
listener = [
{
timeout = 300;
on-timeout = "hyprlock";
}
{
timeout = 600;
on-timeout = "hyprctl dispatch dpms off";
on-resume = "hyprctl dispatch dpms on";
}
];
};
};
2025-03-27 12:54:14 +01:00
}