bonfire/lib/preconfiguredModules/homeManager/hypridle.nix
L-Nafaryus aa3f2c28e0
All checks were successful
nix / check (push) Successful in 3m38s
new: lib.preconfiguredModules: hyprland, hypridle, hyprlock
2024-09-22 14:36:33 +05:00

25 lines
480 B
Nix

{
pkgs,
lib,
config,
hmConfig,
...
}: {
services.hypridle = {
enable = true;
settings = {
general = {
after_sleep_cmd = "${pkgs.hyprland}/bin/hyprctl dispatch dpms on";
ignore_dbus_inhibit = false;
};
listener = [
{
timeout = 300;
on-timeout = "${pkgs.hyprland}/bin/hyprctl dispatch dpms off";
on-resume = "${pkgs.hyprland}/bin/hyprctl dispatch dpms on";
}
];
};
};
}