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 <noreply@anthropic.com>
This commit is contained in:
rope 2026-05-16 17:37:02 +01:00
parent 60ab2d6b70
commit 33b2c3815c

View file

@ -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 = [