#!/bin/bash # create jack clients /usr/bin/alsa_in -j "from alsa" -dcloop -p 2048 2>&1 1>/dev/null & /usr/bin/alsa_out -j "to alsa" -dploop 2>&1 1>/dev/null & # pass some time sleep 1 # connect alsa -> jack jack_connect "from alsa:capture_1" "system:playback_1" jack_connect "from alsa:capture_2" "system:playback_2" # connect jack -> alsa jack_connect "system:capture_1" "to alsa:playback_1" jack_connect "system:capture_2" "to alsa:playback_2"