I have a virtual source and a virtual sink which I’m using to forward audio to/from chat apps (Matrix, Discord, Zoom, etc.) so I can control the mic/output volume independently of everything else on my system. I have them setup and working fine using pipewire.conf.d files. The problem is that using wpctl to change volume requires having an ID, but those aren’t static. Normally the solution would be to use @DEFAULT_AUDIO_SOURCE@ (or sink), but that wouldn’t work in this case. Is there a way to adjust volume/toggle mute without having the ID? Or alternatively, is there a way to get the ID for a specific node name that I can put in a bash script?

If I’m asking this in the wrong place, is there a better place to go?

    • Zangoose@lemmy.worldOP
      link
      fedilink
      arrow-up
      3
      ·
      16 days ago

      I don’t think it’s a process ID? I have 2 virtual pipewire devices (one called “chat-mic” and one called “chat-speaker”). Pipewire devices (nodes) also have ID numbers, but they are assigned when the device is initialized on startup and aren’t guaranteed to be the same between reboots