commit 6e18cac68df5539299e619d9217c3130cc25f256
parent 53478edc688c22810e6c757f8a8e3f2f3395a115
Author: parazyd <parazyd@dyne.org>
Date: Tue, 12 May 2020 16:10:17 +0200
Use gifview for gifs.
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/p b/p
@@ -40,8 +40,11 @@ https://www.youtube.com/*|ytdl://)
*.jpg|*.jpeg|*.png|*.JPG|*.JPEG|*.PNG)
feh "$clip"
;;
+gopher://*.gif|gopher://*.GIF|http://*.GIF|https://*.gif)
+ curl -L "$clip" | gifview -a -
+ ;;
*.gif|*.GIF)
- mpv --loop "$clip"
+ gifview -a "$clip"
;;
http://*|https://*)
ff --new-tab "$clip"