#!/bin/sh

pkill jackd
jack_control start
sleep 1
alsa_in -d hw:PCH,0 -j alsa_in &
alsa_out -d hw:PCH,0 -j alsa_out &
sleep 1
jack_connect system:monitor_1 alsa_out:playback_1
jack_connect system:monitor_2 alsa_out:playback_2
jack_connect system:capture_1 system:playback_1
jack_connect system:capture_2 system:playback_2
jack_connect alsa_in:capture_1 "PulseAudio JACK Source":front-left
jack_connect alsa_in:capture_2 "PulseAudio JACK Source":front-right
