Declared hypridle config

This commit is contained in:
TypoMustakes
2026-04-08 14:33:45 +02:00
parent 2382202e13
commit 2a212593f9
2 changed files with 26 additions and 2 deletions

View File

@@ -0,0 +1,22 @@
{
services.hypridle = {
enable = true;
settings = {
general = {
inhibit_sleep = 3;
};
listener = [
{
timeout = 300;
on-timeout = "pidof hyprlock || hyprlock";
}
{
timeout = 900;
on-timeout = "systemctl suspend";
}
];
};
};
}

View File

@@ -1,7 +1,9 @@
{ {
imports = [ imports = [
../programs/fuzzel.nix ./hypridle.nix
../programs/kitty.nix ./hyprlock.nix
../raw/fuzzel.nix
../raw/kitty.nix
../scripts/powermenu.nix ../scripts/powermenu.nix
../scripts/screenshot.nix ../scripts/screenshot.nix
../scripts/themeswitch.nix ../scripts/themeswitch.nix