I have found this script very useful. On upgrading to Linux Mint 22 this month which is using Pipewire, I get an error
No PulseAudio daemon running, or not running as session daemon then ERROR: Microphone (source) "alsa_input.pci-0000_00_0e.0.analog-stereo" was not found
which I think comes from the fact that the pacmd commands are not supported by Pipewire. I have tried replacing them with pactl commands using this chart https://gitlab.freedesktop.org/pipewire/pipewire/-/wikis/Migrate-PulseAudio#pacmd but I am still getting ERROR: Microphone (source) "alsa_input.pci-0000_00_0e.0.analog-stereo" was not found, probably because the rest of the line needs to be adapted and I don't know how to do that.
If I comment out lines 19 to 27 then the script works perfectly without errors as before, but how would I adapt the script without commenting out? I am a beginner to using scripts so simple or step-by-step answers would be appreciated.
I have found this script very useful. On upgrading to Linux Mint 22 this month which is using Pipewire, I get an error
No PulseAudio daemon running, or not running as session daemon then ERROR: Microphone (source) "alsa_input.pci-0000_00_0e.0.analog-stereo" was not found
which I think comes from the fact that the pacmd commands are not supported by Pipewire. I have tried replacing them with pactl commands using this chart https://gitlab.freedesktop.org/pipewire/pipewire/-/wikis/Migrate-PulseAudio#pacmd but I am still getting ERROR: Microphone (source) "alsa_input.pci-0000_00_0e.0.analog-stereo" was not found, probably because the rest of the line needs to be adapted and I don't know how to do that.
If I comment out lines 19 to 27 then the script works perfectly without errors as before, but how would I adapt the script without commenting out? I am a beginner to using scripts so simple or step-by-step answers would be appreciated.