From b61201ae216d75f4668640b817a14f21680f9541 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sat, 20 Apr 2024 13:00:28 -0400 Subject: [PATCH] hypridle: fixed dpms settings to turn off after 5.5mins --- homeManagerModules/desktop/hypr/hypridle/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/homeManagerModules/desktop/hypr/hypridle/default.nix b/homeManagerModules/desktop/hypr/hypridle/default.nix index 7cca4e19..743e270c 100644 --- a/homeManagerModules/desktop/hypr/hypridle/default.nix +++ b/homeManagerModules/desktop/hypr/hypridle/default.nix @@ -6,12 +6,12 @@ }: { options = { alyraffauf.desktop.hyprland.hypridle.enable = - lib.mkEnableOption "Enables hypridle."; + lib.mkEnableOption "Enable hypridle."; }; config = lib.mkIf config.alyraffauf.desktop.hyprland.hypridle.enable { # Packages that should be installed to the user profile. - home.packages = with pkgs; [hypridle brightnessctl]; + home.packages = with pkgs; [hypridle]; xdg.configFile."hypr/hypridle.conf".text = '' general { @@ -39,7 +39,7 @@ } listener { - timeout = 360 # 5.5min + timeout = 330 # 5.5min on-timeout = ${pkgs.hyprland}/bin/hyprctl dispatch dpms off # screen off when timeout has passed on-resume = ${pkgs.hyprland}/bin/hyprctl dispatch dpms on # screen on when activity is detected after timeout has fired. }