dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 3bb02f2dd4075662bc5ad7f4d27d3928bf37277d
parent b8dcecfdd97abc8557126f16ae09f136ee07d902
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Wed, 28 Oct 2020 14:23:47 +0100

plumb: revert to mpv(1) for youtube links

Diffstat:
M.local/bin/plumb | 11++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/.local/bin/plumb b/.local/bin/plumb @@ -233,11 +233,12 @@ handle_url() { mandoc -l "$(fetch "$t")" fi elif regeximatch "$t" '(youtube\.|youtu\.be|vimeo\.com|invidious|invidio\.us|invidious\.snopyta\.org)'; then - #detach $prefix mpv "$t" - f="$(mktemp).webm" - youtube-dl "$t" -o "$f" - $prefix mplayer "$f" - rm "$f" + detach $prefix mpv "$t" + #mkdir -p "${HOME}/tmp" + #cd "$HOME/tmp" + #youtube-dl "$t" + #$prefix mplayer "$f" + #rm "$f" elif regeximatch "$t" '^(http|https)://' || \ regeximatch "$t" '\.webp$'; then detach $prefix $BROWSER "$t"