From 767f80a3d7bae15130c927627c914952329af2c3 Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Fri, 22 Nov 2024 13:39:27 +0100 Subject: [PATCH] Better screen brightness management --- modules/hm/hyprland.nix | 4 ++-- modules/hm/swayidle.nix | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/hm/hyprland.nix b/modules/hm/hyprland.nix index 4104155..d2e4db7 100644 --- a/modules/hm/hyprland.nix +++ b/modules/hm/hyprland.nix @@ -248,8 +248,8 @@ in ]; bindel = [ - ", XF86MonBrightnessUp, exec, brillo -A 10" - ", XF86MonBrightnessDown, exec, brillo -U 10" + ", XF86MonBrightnessUp, exec, brillo -O -A 10" + ", XF86MonBrightnessDown, exec, brillo -O -U 10" ", XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%+" ", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%-" ]; diff --git a/modules/hm/swayidle.nix b/modules/hm/swayidle.nix index f16631f..7ca6ee8 100644 --- a/modules/hm/swayidle.nix +++ b/modules/hm/swayidle.nix @@ -17,8 +17,8 @@ timeouts = [ { timeout = 60; - command = "${pkgs.brillo}/bin/brillo -e -S 10 -u 1000000"; - resumeCommand = "${pkgs.brillo}/bin/brillo -e -S 100"; + command = "${pkgs.brillo}/bin/brillo -e -O; ${pkgs.brillo}/bin/brillo -e -S 10 -u 1000000"; + resumeCommand = "${pkgs.brillo}/bin/brillo -e -I"; } { timeout = 120;