From 18ce390cc66c093a2d23dc49f7b7f03bcf441bb6 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Wed, 12 Oct 2022 20:37:13 -0400 Subject: [PATCH] mpv: add more scripts and binds --- src/.config/mpv/input.conf | 1 + src/.config/mpv/mpv.conf | 1 + src/.local/bin/mpvq | 5 +++++ 3 files changed, 7 insertions(+) create mode 100644 src/.config/mpv/input.conf create mode 100755 src/.local/bin/mpvq 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