.dotfiles/.local/bin/start_jack

38 lines
830 B
Text
Raw Normal View History

#!/bin/bash
2021-07-09 23:08:18 +00:00
until systemctl is-active --quiet --user pulseaudio.socket
do
sleep 0.5
done
2020-07-15 13:50:56 +00:00
systemctl --user stop pulseaudio.service
systemctl --user stop pulseaudio.socket
2020-04-09 19:53:06 +00:00
sleep 1
jack_control ds alsa
jack_control dps device hw:U192k
jack_control dps rate 48000
jack_control dps nperiods 4
jack_control dps period 256
jack_control start
sleep 1
2020-07-15 13:50:56 +00:00
systemctl --user start pulseaudio
2020-04-09 19:53:06 +00:00
sleep 1
2021-10-23 09:02:47 +00:00
#alsa_out -d hw:PCH -j "Speaker" -c 2 &
2021-12-12 20:18:38 +00:00
alsa_out -d "hdmi:CARD=HDMI,DEV=5" -j "Speaker" -c 2 &
2020-12-23 15:44:13 +00:00
sleep 1
jack_connect "PulseAudio JACK Sink":front-left Speaker:playback_1
jack_connect "PulseAudio JACK Sink":front-right Speaker:playback_2
if [ -x "$(command -v jack-matchmaker)" ]
then
jack-matchmaker -e \
Mopidy:out_jackaudiosink0_1 Speaker:playback_1 \
Mopidy:out_jackaudiosink0_2 Speaker:playback_2 &
fi
2021-07-09 22:50:17 +00:00
sleep 3