Move .local/bin to .bin
This commit is contained in:
parent
b8dd204681
commit
76f407954f
16 changed files with 58 additions and 38 deletions
57
.bin/start_audio
Executable file
57
.bin/start_audio
Executable file
|
@ -0,0 +1,57 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
start_audio_jack () {
|
||||
wait-for-service --user "puseaudio.socket"
|
||||
|
||||
systemctl --user stop pulseaudio.service
|
||||
systemctl --user stop pulseaudio.socket
|
||||
|
||||
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
|
||||
systemctl --user start pulseaudio
|
||||
|
||||
sleep 1
|
||||
alsa_out -d hw:PCH -j "Speaker" -c 2 &
|
||||
#alsa_out -d "hdmi:CARD=HDMI,DEV=5" -j "Speaker" -c 2 &
|
||||
|
||||
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
|
||||
|
||||
sleep 3
|
||||
}
|
||||
|
||||
|
||||
start_audio_pipewire () {
|
||||
wait-for-service --user "pipewire.service"
|
||||
wait-for-service --user "wireplumber.service"
|
||||
|
||||
sleep 5
|
||||
|
||||
pw-link 'default-sink:monitor_FL' 'alsa_output.usb-BEHRINGER_UMC202HD_192k-00.analog-stereo:playback_FL'
|
||||
pw-link 'default-sink:monitor_FR' 'alsa_output.usb-BEHRINGER_UMC202HD_192k-00.analog-stereo:playback_FR'
|
||||
|
||||
pw-link 'default-sink:monitor_FL' 'alsa_output.pci-0000_00_1f.3.analog-stereo:playback_FL'
|
||||
pw-link 'default-sink:monitor_FR' 'alsa_output.pci-0000_00_1f.3.analog-stereo:playback_FR'
|
||||
}
|
||||
|
||||
|
||||
case $1 in
|
||||
jack) start_audio_jack ;;
|
||||
pipewire) start_audio_pipewire ;;
|
||||
*) echo "'$1' is not valid" ;;
|
||||
esac
|
|
@ -48,7 +48,7 @@ export OPENFAAS_URL="https://faas.serguzim.me"
|
|||
export OSH="$XDG_CONFIG_HOME/bash/oh-my-bash"
|
||||
|
||||
export PASSWORD_STORE_GENERATED_LENGTH='64'
|
||||
export PATH="$HOME/.local/bin:/usr/local/bin:/usr/bin:/usr/sbin:/bin:/sbin:$GOPATH/bin:$HOME/.cargo/bin"
|
||||
export PATH="$PATH:$HOME/.local/bin:$GOPATH/bin:$HOME/.cargo/bin:$HOME/.bin"
|
||||
|
||||
export QT_QPA_PLATFORM="wayland;xcb"
|
||||
export QT_QPA_PLATFORMTHEME="qt5ct"
|
||||
|
|
|
@ -1,37 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
until systemctl is-active --quiet --user pulseaudio.socket
|
||||
do
|
||||
sleep 0.5
|
||||
done
|
||||
|
||||
systemctl --user stop pulseaudio.service
|
||||
systemctl --user stop pulseaudio.socket
|
||||
|
||||
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
|
||||
systemctl --user start pulseaudio
|
||||
|
||||
sleep 1
|
||||
alsa_out -d hw:PCH -j "Speaker" -c 2 &
|
||||
#alsa_out -d "hdmi:CARD=HDMI,DEV=5" -j "Speaker" -c 2 &
|
||||
|
||||
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
|
||||
|
||||
sleep 3
|
Loading…
Reference in a new issue