Hearing podcasts from my phone while gaming on Linux
I want to listen to podcasts playing on my phone while playing games on my Linux PC -- with the PC headset. For this I use scrcpy, which can forward the audio of an Android phone to the PC.
The phone needs developer mode enabled and "USB debugging" activated in the developer settings. Then start scrcpy with the phone connected via USB:
With "USB debugging" activated, the first run of this command triggers a dialog on the phone to allow the PC.
My first try failed because "USB debugging" was not activated:
The second try with "USB debugging" activated found my Pixel 8a:
INFO: ADB device found: INFO: --> (usb) <serial> device Pixel_8a [server] INFO: Device: [Google] google Pixel 8a (Android 17)
In sway the window for the phone looks like this (it is floating):

Now the podcast audio from the phone plays on the PC. And while gaming I only need to balance the volume of game audio and podcast audio. When "USB debugging" is deactivated in the phone settings, the connection closes immediately.
I used scrcpy 5.0.1 from the Arch Linux repositories.

