summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorsils <sils@sils.li>2023-10-19 13:54:03 +0200
committersils <sils@sils.li>2023-10-19 13:54:03 +0200
commit579f3daebab310c03b6bc4037fa225114f5e7f3b (patch)
tree8b34cd4066173da8c73309add46b2a0d3614acf0
parentbuild(flake): update (diff)
downloadnix-config-579f3daebab310c03b6bc4037fa225114f5e7f3b.tar.gz
nix-config-579f3daebab310c03b6bc4037fa225114f5e7f3b.zip
fix(u/sils/swayidle): turn screen off before lock
Diffstat (limited to '')
-rw-r--r--users/sils/swayidle/default.nix12
1 files changed, 6 insertions, 6 deletions
diff --git a/users/sils/swayidle/default.nix b/users/sils/swayidle/default.nix
index f901a58..beddfd5 100644
--- a/users/sils/swayidle/default.nix
+++ b/users/sils/swayidle/default.nix
@@ -14,14 +14,14 @@
     ];
     timeouts = [
       {
-        timeout = 120;
+        timeout = 60;
         command = "${pkgs.swaylock}/bin/swaylock -f";
       }
-      #{
-      #  timeout = 140;
-      #  command = "${pkgs.hyprland}/bin/hyprctl dispatch dpms off";
-      #  resumeCommand = "${pkgs.hyprland}/bin/hyprctl dispatch dpms on";
-      #}
+      {
+        timeout = 40;
+        command = "${pkgs.hyprland}/bin/hyprctl dispatch dpms off";
+        resumeCommand = "${pkgs.hyprland}/bin/hyprctl dispatch dpms on";
+      }
     ];
     systemdTarget = "hyprland-session.target";
   };