hyprland: extract hypridle

This commit is contained in:
Jordan Holt 2025-03-16 22:07:13 +00:00
parent 643d6819ee
commit c626e942cd
Signed by: jordan
GPG Key ID: B8CFFF61F1CCF520
2 changed files with 29 additions and 23 deletions

View File

@ -5,6 +5,7 @@
{
imports = [
./hypridle.nix
./hyprlock.nix
./hyprpaper.nix
];
@ -172,29 +173,6 @@
};
};
services.hypridle = {
enable = false;
settings = {
general = {
after_sleep_cmd = "hyprctl dispatch dpms on";
ignore_dbus_inhibit = false;
lock_cmd = "hyprlock";
};
listener = [
{
timeout = 900;
on-timeout = "hyprlock";
}
{
timeout = 1200;
on-timeout = "hyprctl dispatch dpms off";
on-resume = "hyprctl dispatch dpms on";
}
];
};
};
home.packages = with pkgs.unstable; [
adw-gtk3
anyrun

View File

@ -0,0 +1,28 @@
{
...
}:
{
services.hypridle = {
enable = false;
settings = {
general = {
after_sleep_cmd = "hyprctl dispatch dpms on";
ignore_dbus_inhibit = false;
lock_cmd = "hyprlock";
};
listener = [
{
timeout = 900;
on-timeout = "hyprlock";
}
{
timeout = 1200;
on-timeout = "hyprctl dispatch dpms off";
on-resume = "hyprctl dispatch dpms on";
}
];
};
};
}