zenUtils/orca-setup.sh

46 lines
905 B
Bash
Raw Permalink Normal View History

2024-09-26 04:15:43 +00:00
#!/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