Doesn't play sound through Bluetooth headphones when other apps do
Describe the bug
I have a browser with https://open.spotify.com open and a terminal with ncspot next to it. My Bluetooth headphones are connected to my laptop. When playing music from Spotify in the browser, it plays it correctly via my headphones. When playing music from ncspot, it plays incorrectly from my laptop's built in speakers.
This happens even when reopening ncspot after the headphones have been connected and work properly.
To Reproduce Steps to reproduce the behavior:
- Connect Bluetooth headphones
- Open
ncspot - Play music
- Sound comes from the laptop's speakers instead of the headphones
Expected behavior
I expect ncspot to respect the sound output defined by pipewire and wireplumber.
System (please complete the following information):
- OS: NixOS
- Terminal: Alacritty on Hyprland
- Version:
1.1.0 - Installed from:
nixpkgs-unstable
Additional context
Here is my NixOS setup where the problem occurs: https://github.com/cloudlena/nixfiles. The Bluetooth headphones are Pixel Buds Pro.