stop all when the soundboard is stopped

This commit is contained in:
William Bell
2026-01-03 14:47:17 +00:00
parent 408f4e1674
commit 9869f6c96e

View File

@@ -2,6 +2,8 @@
STATE="$HOME/.soundboard" STATE="$HOME/.soundboard"
exec ./stop_all.sh
# 2. Restore default mic BEFORE unloading modules # 2. Restore default mic BEFORE unloading modules
DEFAULT_MIC=$(pactl info | grep "Default Source" | awk '{print $3}') DEFAULT_MIC=$(pactl info | grep "Default Source" | awk '{print $3}')
if [[ -n "$DEFAULT_MIC" ]]; then if [[ -n "$DEFAULT_MIC" ]]; then