super duper changes :D

This commit is contained in:
2026-02-22 20:02:46 +01:00
parent 72cdbe93ff
commit ffd09e5046
10 changed files with 665 additions and 19 deletions

33
modules/hypr/hypridle.nix Normal file
View File

@@ -0,0 +1,33 @@
{ isNixOS, lib, ... }:
{
services.hypridle = {
enable = true;
package = lib.mkIf (!isNixOS) null;
settings = {
general = {
lock_cmd = "pidof hyprlock || hyprlock";
before_sleep_cmd = "hyprlock";
after_sleep_cmd = "hyprctl dispatch dpms on";
};
listener = [
{
timeout = 300; # 5 min
on-timeout = "hyprlock";
}
{
timeout = 330; # 5.5 min
on-timeout = "hyprctl dispatch dpms off";
on-resume = "hyprctl dispatch dpms on";
}
{
timeout = 330; # 5.5 min
on-timeout = "openrgb -c black";
on-resume = "openrgb -c green";
}
];
};
};
}