diff --git a/src/.config/mpv/input.conf b/src/.config/mpv/input.conf new file mode 100644 index 0000000..fb9298d --- /dev/null +++ b/src/.config/mpv/input.conf @@ -0,0 +1 @@ +CTRL+p script-message osc-playlist diff --git a/src/.config/mpv/mpv.conf b/src/.config/mpv/mpv.conf index e165c00..9e5be31 100644 --- a/src/.config/mpv/mpv.conf +++ b/src/.config/mpv/mpv.conf @@ -1 +1,2 @@ osd-status-msg=${playback-time/full} / ${duration} (${percent-pos}%)\nframe: ${estimated-frame-number} / ${estimated-frame-count} +input-ipc-server="/tmp/mpv-socket" diff --git a/src/.local/bin/mpvq b/src/.local/bin/mpvq new file mode 100755 index 0000000..21e2447 --- /dev/null +++ b/src/.local/bin/mpvq @@ -0,0 +1,5 @@ +#!/bin/sh +# Append link from clipboard to mpv playlist + +path="$(xsel -b)" +echo "{ command: [ \"loadfile\", \"$path\", \"append-play\" ] }" | socat - /tmp/mpv-socket