tPrefer videos no matter the URI. - plumber - simple plumber tool
HTML git clone https://git.parazyd.org/plumber
DIR Log
DIR Files
DIR Refs
---
DIR commit e365e89024b953b1d44f81c720ed3120b05208bf
DIR parent 02226c3b9d3542bb4a144ecf000900acde5d90c5
HTML Author: parazyd <parazyd@dyne.org>
Date: Tue, 24 Mar 2020 14:02:10 +0100
Prefer videos no matter the URI.
Diffstat:
M p | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
DIR diff --git a/p b/p
t@@ -19,6 +19,9 @@ fi
termcmd="st -e"
case "$clip" in
+*.mp4|*.webm|*.mkv)
+ mpv "$clip"
+ ;;
gopher://*/I/*)
curl "$clip" | feh -
;;
t@@ -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"
;;