aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2019-03-20 16:31:14 +0100
committerInigoGutierrez <inigogf.95@gmail.com>2019-03-20 16:31:14 +0100
commitcb328308bc7375de7f8b695761e56d237a9e1304 (patch)
treed62802a014cfd535f2bcd8d7a0dba82b2f572a7f
parente700d2c0a4f75ae2875d0586887636fb3308762a (diff)
downloadscripts-cb328308bc7375de7f8b695761e56d237a9e1304.tar.gz
scripts-cb328308bc7375de7f8b695761e56d237a9e1304.zip
Created 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"