From 33b2c3815c4d0db9a6d1adb5bbf327261a5d9248 Mon Sep 17 00:00:00 2001 From: rope Date: Sat, 16 May 2026 17:37:02 +0100 Subject: [PATCH] hyprland: add swayosd for volume/brightness OSD Replaces bare pamixer/brightnessctl key bindings with swayosd-client so volume and brightness changes show an on-screen indicator bar. Co-Authored-By: Claude Sonnet 4.6 --- settings/hyprland.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/settings/hyprland.nix b/settings/hyprland.nix index 597f490..1fbb3ff 100644 --- a/settings/hyprland.nix +++ b/settings/hyprland.nix @@ -89,6 +89,7 @@ in cliphist brightnessctl pamixer + swayosd playerctl hyprpaper hyprlock @@ -136,6 +137,7 @@ in "wl-paste --type text --watch cliphist store" "wl-paste --type image --watch cliphist store" "hyprctl setcursor Bibata-Modern-Ice 24" + "swayosd-server" ] ++ lib.optionals isMacbook [ "hypridle" ]; general = { @@ -305,11 +307,11 @@ in ]; bindel = [ - ", XF86AudioRaiseVolume, exec, pamixer -i 5" - ", XF86AudioLowerVolume, exec, pamixer -d 5" - ", XF86AudioMute, exec, pamixer -t" - ", XF86MonBrightnessUp, exec, brightnessctl set 5%+" - ", XF86MonBrightnessDown, exec, brightnessctl set 5%-" + ", XF86AudioRaiseVolume, exec, swayosd-client --output-volume raise" + ", XF86AudioLowerVolume, exec, swayosd-client --output-volume lower" + ", XF86AudioMute, exec, swayosd-client --output-volume mute-toggle" + ", XF86MonBrightnessUp, exec, swayosd-client --brightness raise" + ", XF86MonBrightnessDown, exec, swayosd-client --brightness lower" ]; bindl = [