plumber

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

commit 7c1742bfab9e00a25b4504cfe2b3b6f0b0e3aaeb
parent b831b8f86acb0c488dc9a3b43ef24fad38f5ea9b
Author: parazyd <parazyd@dyne.org>
Date:   Fri, 28 May 2021 21:23:00 +0200

Use feh directly where possible.

Diffstat:
Mplumber | 14++++----------
1 file changed, 4 insertions(+), 10 deletions(-)

diff --git a/plumber b/plumber @@ -14,14 +14,7 @@ TERMCMD="${TERMCMD:-st -e}" case "$clip" in *.jpg|*.jpeg|*.JPG|*.JPEG|*.png|*.PNG|*.ico|*.ICO) - case "$clip" in - gopher://*|gophers://*) - hurl "$clip" | feh - & - ;; - *) - feh "$clip" & - ;; - esac + feh "$clip" & ;; *.mp4|*.MP4|*.webm|*.WEBM|*.mkv|*.MKV|*.avi|*.AVI|*.wav|*.WAV|\ @@ -66,9 +59,10 @@ http://*|https://*) ff -new-tab "$clip" & ;; *twimg.com*|*.scontent*.fbcdn.net*) - hurl "$clip" | feh - & + feh "$clip" & ;; - *youtube.com*|*youtu.be*|*vimeo.com*|*dailymotion.com*|*invidious.tube*) + *youtube.com*|*youtu.be*|*vimeo.com*|*dailymotion.com*|*invidious.tube*|\ + *yewtu.be*) mpv "$clip" & ;; *)