commit 6fda457b908a347be3ec32e4a30518a719cfa5a6 parent 4142dfeed9fd309598019c18829909caa0c71d7f Author: breadcat <breadcat@users.noreply.github.com> Date: Tue, 25 Nov 2025 16:25:34 +0000 Add hypridle config Diffstat:
| A | home/hypridle.nix | | | 19 | +++++++++++++++++++ |
| M | machines/atlas.nix | | | 1 | + |
2 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/home/hypridle.nix b/home/hypridle.nix @@ -0,0 +1,19 @@ +{ + services.hypridle = { + enable = true; + settings = { + general = { + after_sleep_cmd = "hyprctl dispatch dpms on"; + ignore_dbus_inhibit = false; + lock_cmd = "hyprlock"; + }; + listener = [ + { + timeout = 300; + on-timeout = "hyprctl dispatch dpms off"; + on-resume = "hyprctl dispatch dpms on"; + } + ]; +}; + }; +} diff --git a/machines/atlas.nix b/machines/atlas.nix @@ -48,6 +48,7 @@ in ../home/htop.nix ../home/hyprland-numlock.nix ../home/hyprland.nix + ../home/hypridle.nix (import ../home/iamb.nix {inherit matrixuser matrixserver;}) ../home/lf.nix ../home/mpv.nix