From c437cf51581e930ab51873fd54ed91cc4572903c Mon Sep 17 00:00:00 2001 From: Alex van de Sandt Date: Sun, 14 Jun 2026 14:33:37 -0500 Subject: [PATCH] And binds for backlight control --- desktop/hyprland.nix | 14 +++++++++----- home.nix | 1 + 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/desktop/hyprland.nix b/desktop/hyprland.nix index 37141b7..13a5ccd 100644 --- a/desktop/hyprland.nix +++ b/desktop/hyprland.nix @@ -205,16 +205,20 @@ ]; bindel = [ - # Laptop multimedia keys for volume and LCD brightness + # Volume control ",XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+" ",XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-" ",XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle" + # Backlight brightness + ",XF86MonBrightnessUp, exec, brightnessctl set 10%+" + ",XF86MonBrightnessDown, exec, brightnessctl set 10%-" + # Requires playerctl - ", XF86AudioNext, exec, playerctl next" - ", XF86AudioPause, exec, playerctl play-pause" - ", XF86AudioPlay, exec, playerctl play-pause" - ", XF86AudioPrev, exec, playerctl previous" + # ", XF86AudioNext, exec, playerctl next" + # ", XF86AudioPause, exec, playerctl play-pause" + # ", XF86AudioPlay, exec, playerctl play-pause" + # ", XF86AudioPrev, exec, playerctl previous" ]; windowrule = [ diff --git a/home.nix b/home.nix index 731a6f7..c4492db 100644 --- a/home.nix +++ b/home.nix @@ -41,6 +41,7 @@ ]; home.packages = with pkgs; [ + brightnessctl hyprpaper hyprshutdown jq -- 2.51.2