Greetings, Worik.  I have been working out the same sort of problems for a while; my functional solutions are all here:

http://lsn.ponderworthy.com

In order to handle a very wide variety of configurations, I'd have to recommend this:

http://lsn.ponderworthy.com/doku.php/robust_session_management

which is not what I'm using now, because my direction has been in the streamlining for live performance.

J.E.B.

On 06/14/2016 07:03 PM, worik wrote:
Friends

Apologies if this has been asked and answered already but I can find no
solutns.

My jackd set up is quite idiosyncratic.  When I plug in my external
sound gear I have to change the connections each time to get sound out. 
I also use a variety of gear from the same computer each with its own
requirements.

I would like to be able to write a script that would start up jackd, set
the default sound IO to use jackd (I am on Ubuntu Studio) start a couple
of other applications and change the connections.

The man page for jackd is not much help.  I have found some pages that
have part of the answer (e.., http://www.64studio.com/node/740) but
surely there is some direct way of manipulating jackd connections
without a mouse and GUI?

Worik


--
Jonathan E. Brickman   jeb@ponderworthy.com   (785)233-9977
Hear us at http://ponderworthy.com -- CDs and MP3 now available!
Music of compassion; fire, and life!!!