bugfix: mpv socket accessible and silence mpv output
This commit is contained in:
+2
-1
@@ -78,8 +78,9 @@ mpv_quit() {
|
||||
# Start an mpv instance and bind it to the socket `MPV_SOCKET`
|
||||
mpv_start() {
|
||||
MPV_SOCKET="$(mktemp --suffix=.sock)"
|
||||
export MPV_SOCKET
|
||||
trap 'mpv_quit >/dev/null; rm -f "$MPV_SOCKET"' EXIT INT
|
||||
$MPV --no-config --no-terminal --input-ipc-server="$MPV_SOCKET" --idle --no-osc --no-input-default-bindings &
|
||||
nohup $MPV --no-config --no-terminal --input-ipc-server="$MPV_SOCKET" --idle --no-osc --no-input-default-bindings >/dev/null 2&>1 &
|
||||
}
|
||||
|
||||
# Play the track at the specified index in the playlist
|
||||
|
||||
Reference in New Issue
Block a user