I use jack-matchmaker which I believe is based on one of the above mentioned or something similar. It can be started before or after and will automatically re/connect any connections and check any newly created ports against the argument's given. You can also just assign one port and it will make all possible connections , or multiple specific connections per pair of arguments if you use regular expressions well

On Tue, Jan 29, 2019, 02:02 Peter P. <peterparker@fastmail.com wrote:
Paul, Elijah, everyone,

thanks for your suggestions! I went with jack_plumbing.
Can anyone confirm that jack_plumbing will need to be started before the
applications which it is about to manage? It does not manage connections
already made? I am on the lookout for a way to start jack, jack_plumbing
and a jack-aware application on the command line and restart each of
them should they crash/die and restore connections no matter in which
sequence the three come up again. It seems jack_plumbing needs to be
started after jackd but before applications it is supposed to manage.
I am afraid I have to write a script using jack_connect then.

For handling of jack connections on headless machines/command line, I am
looking for the best way to make connections once an application has
been started or restarted. It would be great if applications could
generally honor environment variables like
        $ JACK_PORTS=system:playback_1 mediaplayerapp
but I suppose that implementation is up to the application programmers.

* Elijah Abdul Rahman <elijahjuanye@gmail.com> [2019-01-29 06:19]:
> An application I've been using is called aj-snapshot. In my script I use
> where I start jack I also run aj-snapshot. Whenever an application or
> device is connected if it's had previous connections before. My connections
> get re-connected.
Thanks Elijah, will look into aj-snapshot in comparison to jack_plumbing
as well.

cheers, P
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@lists.linuxaudio.org
https://lists.linuxaudio.org/listinfo/linux-audio-user