How do I make media keys work with PipeWire?
+2
−0
My keyboard has keys for mute, volume up, volume down. In i3wm, I used to have these bound with:
bindsym XF86AudioRaiseVolume exec --no-startup-id pulsemixer --change-volume +10 --max-volume 100
bindsym XF86AudioLowerVolume exec --no-startup-id pulsemixer --change-volume -10 --max-volume 100
bindsym XF86AudioMute exec --no-startup-id pulsemixer --toggle-mute
It was working in PulseAudio, but after switching to PipeWire, they don't. Can it be fixed?
1 answer
+0
−0
I was able to make this work with:
bindsym XF86AudioRaiseVolume exec --no-startup-id wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+
bindsym XF86AudioLowerVolume exec --no-startup-id wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
bindsym XF86AudioMute exec --no-startup-id wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
wpctl
came from WirePlumber: https://wiki.archlinux.org/title/WirePlumber
1 comment thread