commit d11ca6a2974e2a1bfc14b728f0968dc20450badb
parent 4e836ceb1addde4e8644bf39293269120e45b95b
Author: parazyd <parazyd@dyne.org>
Date: Sat, 20 Feb 2021 20:36:21 +0100
Add handler for SVG.
Diffstat:
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/plumber b/plumber
@@ -35,6 +35,9 @@ gopher://*|gophers://)
sxiv -a "$f"
rm -f "$f"
;;
+ *.svg|*.SVG)
+ hurl "$clip" | convert svg:- png:- | feh - &
+ ;;
*)
$TERMCMD sacc "$clip" &
;;
@@ -64,6 +67,9 @@ http://*|https://*)
*youtube.com*|*youtu.be*|*vimeo.com*|*dailymotion.com*|*invidious.tube*)
mpv "$clip" &
;;
+ *.svg|*.SVG)
+ hurl "$clip" | convert svg:- png:- | feh - &
+ ;;
*)
ff -new-tab "$clip" &
;;
@@ -90,6 +96,10 @@ ssh://*)
sxiv "$clip" &
;;
+*.svg|*.SVG)
+ hurl "$clip" | convert svg:- png:- | feh - &
+ ;;
+
"")
logger -s "plumber: nothing to plumb"
exit 1