tUse sxiv for viewing animated gifs. - plumber - simple plumber tool HTML git clone https://git.parazyd.org/plumber DIR Log DIR Files DIR Refs --- DIR commit 9a21075daadb9044c460bc378fe00a7a84495fe9 DIR parent 35db6374453e4d2a9b9b161ea27133433fa38b53 HTML Author: parazyd <parazyd@dyne.org> Date: Wed, 13 May 2020 16:05:30 +0200 Use sxiv for viewing animated gifs. Diffstat: M p | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) --- DIR diff --git a/p b/p t@@ -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" & t@@ -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" &