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:(.*)" ]; }; };