plumber

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

commit 9a21075daadb9044c460bc378fe00a7a84495fe9
parent 35db6374453e4d2a9b9b161ea27133433fa38b53
Author: parazyd <parazyd@dyne.org>
Date:   Wed, 13 May 2020 16:05:30 +0200

Use sxiv for viewing animated gifs.

Diffstat:
Mp | 10++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/p b/p @@ -31,7 +31,10 @@ gopher://*) $TERMCMD sh -c "curl -s '$clip' | less" & ;; *.gif|*.GIF) - curl -s "$clip" | gifview -a - & + f="$(mktemp /tmp/XXXX.gif)" + curl -s "$clip" > "$f" + sxiv -a "$f" + rm -f "$f" ;; *) $TERMCMD sacc "$clip" & @@ -48,7 +51,10 @@ http://*|https://*) mpv "$clip" & ;; *.gif|*.GIF) - curl -Ls "$clip" | gifview -a - & + f="$(mktemp /tmp/XXXX.gif)" + curl -Ls "$clip" > "$f" + sxiv -a "$f" + rm -f "$f" ;; *www.youtube.com*|*vimeo.com*|*dailymotion.com*) mpv "$clip" &