summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorsils <sils@sils.li>2023-08-15 13:33:15 +0200
committersils <sils@sils.li>2023-08-15 13:33:15 +0200
commitd3dfca63d92d32f1fe31136155d399fc0b2b83a2 (patch)
tree3f480b55728ef321d825190b83debe6a091cc2cf
parentFix(u/sils/swayidle): Add timeout for screen locking (diff)
downloadnix-config-d3dfca63d92d32f1fe31136155d399fc0b2b83a2.tar.gz
nix-config-d3dfca63d92d32f1fe31136155d399fc0b2b83a2.zip
Fix(u/sils/swayidle): Turn screen off after 140 seconds.
-rw-r--r--users/sils/swayidle/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/users/sils/swayidle/default.nix b/users/sils/swayidle/default.nix
index 216165d..20eabad 100644
--- a/users/sils/swayidle/default.nix
+++ b/users/sils/swayidle/default.nix
@@ -17,6 +17,11 @@
         timeout = 120;
         command = "${pkgs.swaylock}/bin/swaylock -f";
       }
+      {
+        timeout = 140;
+        command = "${pkgs.hyprland}/bin/hyprctl dispatch dpms off";
+        resumeCommand = "${pkgs.hyprland}/bin/hyprctl dispatch dpms on";
+      }
     ];
     systemdTarget = "hyprland-session.target";
   };