zenUtils/orca-setup.sh

45 lines
905 B
Bash
Executable file

#!/bin/sh
free_soundcard() {
killall wireplumber
killall pipewire-pulse
killall pipewire
}
start_synthrack() {
ghostess \
/usr/lib/dssi/whysynth.so \
/usr/lib/dssi/whysynth.so \
/usr/lib/dssi/whysynth.so \
/usr/lib/dssi/whysynth.so \
/usr/lib/dssi/whysynth.so \
/usr/lib/dssi/whysynth.so \
/usr/lib/dssi/whysynth.so \
/usr/lib/dssi/whysynth.so \
/usr/lib/dssi/whysynth.so \
/usr/lib/dssi/whysynth.so \
/usr/lib/dssi/whysynth.so \
/usr/lib/dssi/whysynth.so \
/usr/lib/dssi/whysynth.so \
/usr/lib/dssi/whysynth.so \
/usr/lib/dssi/whysynth.so \
/usr/lib/dssi/whysynth.so
}
restore_pipewire() {
pipewire & sleep 1
pipewire-pulse &
killall pipewire-media-session
wireplumber &
}
free_soundcard
start_synthrack & sleep 3
synthPID=$!
uxnemu ~/src/orca-toy/bin/orca.rom | ~/src/shim/bin/shim 2 & sleep 1
killall pulseaudio
while pgrep ghostess > /dev/null; do
sleep 5
done
restore_pipewire