I have two applications on startup, which I link together with loopbacks and null sinks. Everything works great, except everytime I start them I have to open pavucontrol and manually change the sink/source for each application. I know there is a command to change the default sink, but that doesn't help. I want to be able to assign a sink or source to each application's input and output without opening pavucontrol. There is obviously a way to do this (as pavucontrol is doing behind the scenes) I just can't find any documentation or anyone else who has done this before.
Images to demonstrate: