From d3dfca63d92d32f1fe31136155d399fc0b2b83a2 Mon Sep 17 00:00:00 2001 From: sils Date: Tue, 15 Aug 2023 13:33:15 +0200 Subject: Fix(u/sils/swayidle): Turn screen off after 140 seconds. --- users/sils/swayidle/default.nix | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'users') 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"; }; -- cgit 1.4.1