mpv: add more scripts and binds

This commit is contained in:
dogeystamp 2022-10-12 20:37:13 -04:00
parent e55fa54410
commit 18ce390cc6
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38
3 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1 @@
CTRL+p script-message osc-playlist

View File

@ -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"

5
src/.local/bin/mpvq Executable file
View File

@ -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