From 94f99ad3d4bb375d0d1296e4b2755057bd812fd9 Mon Sep 17 00:00:00 2001 From: scouckel Date: Wed, 26 Nov 2025 03:08:28 -0600 Subject: rebase --- modules/home-manager/hypr/hypridle.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 modules/home-manager/hypr/hypridle.nix (limited to 'modules/home-manager/hypr/hypridle.nix') diff --git a/modules/home-manager/hypr/hypridle.nix b/modules/home-manager/hypr/hypridle.nix new file mode 100644 index 0000000..3f575a0 --- /dev/null +++ b/modules/home-manager/hypr/hypridle.nix @@ -0,0 +1,26 @@ +{ config, lib, ... }: + +{ + config = lib.mkIf config.hyprland.enable { + services.hypridle = { + enable = true; + + settings = { + general = { + lock_cmd = "pidof hyprlock || hyprlock"; + }; + + listener = [ + { + timeout = 300; + on-timeout = "hyprlock"; + } + { + timeout = 3600; + on-timeout = "hyprctl dispatch dpms off"; + } + ]; + }; + }; + }; +} \ No newline at end of file -- cgit v1.3