33 lines
766 B
Nix
33 lines
766 B
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
# Hyprland and related packages
|
|
home.packages = with pkgs; [
|
|
hypridle
|
|
];
|
|
|
|
# Hypridle configuration
|
|
services.hypridle = {
|
|
enable = true;
|
|
settings = {
|
|
general = {
|
|
after_sleep_cmd = "hyprctl dispatch dpms on";
|
|
ignore_dbus_inhibit = false;
|
|
lock_cmd = "hyprlock";
|
|
};
|
|
|
|
listener = [
|
|
{
|
|
timeout = 300;
|
|
on-timeout = "hyprlock";
|
|
}
|
|
{
|
|
timeout = 600;
|
|
on-timeout = "hyprctl dispatch dpms off";
|
|
on-resume = "hyprctl dispatch dpms on";
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|