diff --git a/modules/home/de/hyprland/keybinds.nix b/modules/home/de/hyprland/keybinds.nix index 1a8fc8f..29a44ca 100644 --- a/modules/home/de/hyprland/keybinds.nix +++ b/modules/home/de/hyprland/keybinds.nix @@ -101,8 +101,8 @@ ", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-" # Adjust brightness - ", XF86MonBrightnessUp, exec, brillo -q -u 20000 -A 4" - ", XF86MonBrightnessDown, exec, brillo -q -u 20000 -U 4" + ", XF86MonBrightnessUp, exec, ${lib.getExe pkgs.brightnessctl} -e set +2%" + ", XF86MonBrightnessDown, exec, ${lib.getExe pkgs.brightnessctl} -e set 2%-" ]; # Mouse diff --git a/users/seb/@inspiron.nix b/users/seb/@inspiron.nix index bf097d6..74b7891 100644 --- a/users/seb/@inspiron.nix +++ b/users/seb/@inspiron.nix @@ -1,4 +1,4 @@ -{...}: { +{pkgs, lib, ...}: { imports = [./default.nix]; home-manager.users.seb = { @@ -7,8 +7,8 @@ services.hypridle.listeners = [ { timeout = 300; - onTimeout = "brillo -q -O && brillo -q -S 10"; - onResume = "brillo -q -I"; + onTimeout = "${lib.getExe pkgs.brightnessctl} -s && ${lib.getExe pkgs.brightnessctl} -e set 10%"; + onResume = "${lib.getExe pkgs.brightnessctl} -r"; } { timeout = 1200;