add all the script needed (hopefully this means i dont need to even make anymore commits lol)

This commit is contained in:
William Bell
2026-01-02 15:25:09 +00:00
commit 0120c6b6b0
4 changed files with 93 additions and 0 deletions

13
stop_all.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/env bash
STATE="$HOME/.soundboard"
[[ -f "$STATE/playing.pids" ]] || exit 0
while read -r PGID; do
kill -TERM -- "-$PGID" 2>/dev/null || true
done < "$STATE/playing.pids"
rm -f "$STATE/playing.pids"
echo "All soundboard playback stopped."