Stop audio going out over HDMI instead of the speakers or headphone jack
Symptom
Sound plays out of the wrong device: monitor speakers over HDMI/DisplayPort instead of the laptop speakers or the headphone jack, or out of a USB dock that isn't even plugged into speakers. Volume keys change the wrong device's volume.
Cause
WirePlumber picks the default sink by priority score, and HDMI/DisplayPort sinks on discrete GPUs frequently score higher than the analog codec. There is no desktop-environment sound applet on a bare Hyprland session to correct it, so the wrong default just sticks.
Fix
List the nodes and note the numeric IDs:
wpctl status
The Sinks: block looks like this. The * marks the current default:
├─ Sinks:
│ * 51. Built-in Audio Analog Stereo [vol: 0.60]
│ 53. Built-in Audio Digital Stereo (HDMI) [vol: 1.00]
Set the one you want (WirePlumber remembers this across reboots in ~/.local/state/wireplumber/):
wpctl set-default 51
wpctl set-volume @DEFAULT_AUDIO_SINK@ 50%
wpctl set-mute @DEFAULT_AUDIO_SINK@ 0
If the device you want is not listed at all, its card is on the wrong profile. See wpctl status for the Devices: ID and switch profile:
wpctl set-profile 42 1 # analog
wpctl set-profile 42 3 # HDMI
For a GUI, install pavucontrol and set it on the *Output Devices* tab (green tick = default):
sudo pacman -S pavucontrol
Verify
wpctl status shows the * on the sink you chose, and it survives a reboot.