Hi, I'm actually running Ubuntu with a lowlatency kernel, but I have the KXStudio repos enabled.
Anyway, I would like Jack to start when Cadence starts. I see an option to start Jack on Login, but I don't want it to start when I log in -- only when I start Cadence.
The only reason I start Cadence is to start Jack, so it would be nice to just run one action.
Make Jack start when Cadence starts
Moderators: MattKingUSA, khz
Re: Make Jack start when Cadence starts
Does Ubuntu allow you to run programs from keyboard shortcuts? You can run this script:
Remove the last line if you don't have osdctl installed.
I didn't test the code. I ported it from fish to bash-like without thinking much about it.
Code: Select all
#!/bin/sh
jack_control status && jack_control stop || jack_control start;
_state = $(jack_control status);
_state = $(echo $_state | cut -d" " -f3);
if $_state == "started"
cadence-aloop-daemon &
sleep 2
fi
if $_state == "stopped"
echo "do nothing"
fi
_state = "jack $_state";
osdctl -s "$_state";
I didn't test the code. I ported it from fish to bash-like without thinking much about it.
Re: Make Jack start when Cadence starts
Thanks for the reply. I'm happy just running . Thanks for pointing me in the right direction.
Code: Select all
jack_control start & cadence