soundboard: no-resume-playback for mpv

This commit is contained in:
dogeystamp 2022-12-10 10:26:56 -05:00
parent 7abfa796cb
commit 0c3edf47d0
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38

View File

@ -40,7 +40,7 @@ KP_{Insert,End,Down,Next,Left,Begin,Right,Home,Up,Prior}
snd_id="{0-9}";\
id=$(cat /dev/random | base32 | head -c 5);\
socket="$SB_DIR/cur/sb-socket$snd_id-$id";\
mpv --input-ipc-server=$socket $SB_DIR/cur/$snd_id*;\
mpv --no-resume-playback --input-ipc-server=$socket $SB_DIR/cur/$snd_id*;\
rm -f "$socket"
# stop specific sound