From e48a21588670d8f9df489d8e431e37165b6d82e6 Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Sat, 1 Mar 2025 20:06:29 +0100 Subject: [PATCH] Fix hyprland fullscreen configs --- modules/hm/hyprland.nix | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/modules/hm/hyprland.nix b/modules/hm/hyprland.nix index afd8d5a..f7523e6 100644 --- a/modules/hm/hyprland.nix +++ b/modules/hm/hyprland.nix @@ -57,18 +57,17 @@ in after_sleep_cmd = "hyprctl dispatch dpms on"; # to avoid having to press a key twice to turn on the display }; listener = [ + { + timeout = 30; + on-timeout = "${pkgs.brillo}/bin/brillo -e -O; ${pkgs.brillo}/bin/brillo -e -S 10 -u 1000000"; # lower screen backlight + on-resume = "${pkgs.brillo}/bin/brillo -e -I"; # restore screen backlight + } { timeout = 60; - on-timeout = "${pkgs.brillo}/bin/brillo -e -O; ${pkgs.brillo}/bin/brillo -e -S 10 -u 1000000"; - on-resume = "${pkgs.brillo}/bin/brillo -e -I"; + on-timeout = "loginctl lock-session"; # lock screen } { - timeout = 120; - on-timeout = "${pkgs.brillo}/bin/brillo -e -S 0;"; - on-resume = "${pkgs.brillo}/bin/brillo -e -S 100"; - } - { - timeout = 330; # 5.5min + timeout = 300; on-timeout = "hyprctl dispatch dpms off"; # screen off when timeout has passed on-resume = "hyprctl dispatch dpms on"; # screen on when activity is detected after timeout has fired. } @@ -318,7 +317,7 @@ in "workspace 9, class:(teams-for-linux)" "workspace 10, class:(spotify)" "tile, class:(Godot)" - "idleinhibit fullscreenm class:.*" + "idleinhibit fullscreen, class:(.*)" ]; }; };