snowflake/home/wayland/services/hypridle.nix
notohh 137a114c16
flake.nix: add hyprsysinfo && use fufexan zen fork
yazi: disable lua conf & fix keymap

tsuki: add hyprsysinfo

hypridle: dpms off on timeout

hosts: enable wastebin

stash: bump version

yuki: disable paperless & hydroxide
2024-10-14 07:42:09 -04:00

27 lines
555 B
Nix

{
pkgs,
lib,
config,
...
}: {
services.hypridle = {
enable = true;
settings = {
general = {
ignore_dbus_inhibit = false;
lock_cmd = lib.getExe config.programs.hyprlock.package;
before_sleep_cmd = "${pkgs.systemd}/bin/loginctl lock-session";
};
listener = [
{
timeout = 400;
on-timeout = "${lib.getExe config.programs.hyprlock.package}";
}
{
timeout = 460;
on-timeout = "hyprctl dispatch dpms off";
}
];
};
};
}