summaryrefslogtreecommitdiff
path: root/unmoved-modules/home-manager/hypr/hypridle.nix
diff options
context:
space:
mode:
authorscouckel <james.krinsky@gmail.com>2026-03-25 11:14:16 -0500
committerscouckel <james.krinsky@gmail.com>2026-03-25 11:14:16 -0500
commit2a50a86e3faea6deae9adc76572cc543baf678d3 (patch)
tree95e8bb2771a847cfcc51ca90ac6a2de9548b5bec /unmoved-modules/home-manager/hypr/hypridle.nix
parent3406096fa9f5dfd669e0b7a43e3f2227d51b10a7 (diff)
inital move and renaming
Diffstat (limited to 'unmoved-modules/home-manager/hypr/hypridle.nix')
-rw-r--r--unmoved-modules/home-manager/hypr/hypridle.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/unmoved-modules/home-manager/hypr/hypridle.nix b/unmoved-modules/home-manager/hypr/hypridle.nix
new file mode 100644
index 0000000..3f575a0
--- /dev/null
+++ b/unmoved-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