aboutsummaryrefslogtreecommitdiff
path: root/bin/,url_image
diff options
context:
space:
mode:
Diffstat (limited to 'bin/,url_image')
-rwxr-xr-xbin/,url_image12
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/,url_image b/bin/,url_image
new file mode 100755
index 0000000..5589de7
--- /dev/null
+++ b/bin/,url_image
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+# Pipe images from URLs into sxiv
+
+# get image extension
+EXT="${1##*.}"
+
+# download it into a tmp file
+wget "$1" -O /tmp/img.$EXT
+
+# open in image viewer
+xdg-open /tmp/img.$EXT