aboutsummaryrefslogtreecommitdiff
path: root/showURLimage.sh
diff options
context:
space:
mode:
Diffstat (limited to 'showURLimage.sh')
-rwxr-xr-xshowURLimage.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/showURLimage.sh b/showURLimage.sh
new file mode 100755
index 0000000..9ad0a6d
--- /dev/null
+++ b/showURLimage.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# Downloads an url to /tmp and opens it with sxiv.
+
+filename=/tmp/showURLimage$(date +%H%M%S)
+curl $1 > $filename
+sxiv -b -N sxivfloat $filename || notify-send "No image found at $1"