nixos-config/home-manager/stvnliu/hypr/hypridle.nix
Zhongheng Liu d88a524105
feat: updated configuration for thunderbird, fish, and hypridle configuration
thunderbird: added configuration values in home-manager

fish: added more plugins and custom functions to do funny things

hypridle: changed timeoutSeconds value from 60 to 600 because it is too annoying
2024-08-12 15:31:40 +08:00

20 lines
388 B
Nix

{pkgs, ...}: let
timeoutSeconds = 600;
in {
services.hypridle = {
enable = true;
settings = {
general = {
after_sleep_cmd = "hyprctl dispatch dpms on";
ignore_dbus_inhibit = false;
lock_cmd = "hyprlock";
};
listener = [
{
timeout = timeoutSeconds;
on-timeout = "hyprlock";
}
];
};
};
}