soundboard: no-resume-playback for mpv
This commit is contained in:
parent
7abfa796cb
commit
0c3edf47d0
@ -40,7 +40,7 @@ KP_{Insert,End,Down,Next,Left,Begin,Right,Home,Up,Prior}
|
|||||||
snd_id="{0-9}";\
|
snd_id="{0-9}";\
|
||||||
id=$(cat /dev/random | base32 | head -c 5);\
|
id=$(cat /dev/random | base32 | head -c 5);\
|
||||||
socket="$SB_DIR/cur/sb-socket$snd_id-$id";\
|
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"
|
rm -f "$socket"
|
||||||
|
|
||||||
# stop specific sound
|
# stop specific sound
|
||||||
|
Loading…
Reference in New Issue
Block a user