plumber

simple plumber tool
git clone https://git.parazyd.org/plumber
Log | Files | Refs

commit e365e89024b953b1d44f81c720ed3120b05208bf
parent 02226c3b9d3542bb4a144ecf000900acde5d90c5
Author: parazyd <parazyd@dyne.org>
Date:   Tue, 24 Mar 2020 14:02:10 +0100

Prefer videos no matter the URI.

Diffstat:
Mp | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/p b/p @@ -19,6 +19,9 @@ fi termcmd="st -e" case "$clip" in +*.mp4|*.webm|*.mkv) + mpv "$clip" + ;; gopher://*/I/*) curl "$clip" | feh - ;; @@ -37,9 +40,6 @@ https://www.youtube.com/*|ytdl://) *.jpg|*.jpeg|*.png|*.JPG|*.JPEG|*.PNG) feh "$clip" ;; -*.mp4|*.webm|*.mkv) - mpv "$clip" - ;; *.gif|*.GIF) mpv --loop "$clip" ;;