aboutsummaryrefslogtreecommitdiff
path: root/Scripts
diff options
context:
space:
mode:
authordx <aryadevchavali1@gmail.com>2020-06-27 11:00:29 +0100
committerdx <aryadevchavali1@gmail.com>2020-06-27 11:00:29 +0100
commitafa33b7491bd5fd0cc5c42b6374a85b43c3a0333 (patch)
tree0c8ed73a8f7f3f606b8e51626b8bfa5430d6480f /Scripts
parent1c97ea3333b8bcd06635b526dcb42e400fbc632b (diff)
downloaddotfiles-afa33b7491bd5fd0cc5c42b6374a85b43c3a0333.tar.gz
dotfiles-afa33b7491bd5fd0cc5c42b6374a85b43c3a0333.tar.bz2
dotfiles-afa33b7491bd5fd0cc5c42b6374a85b43c3a0333.zip
+little script to download and view pdf files
Curls a url to a temp file, then views it in mupdf. After mupdf is terminated, delete the file.
Diffstat (limited to 'Scripts')
-rwxr-xr-xScripts/.local/scripts/web-pdf7
1 files changed, 7 insertions, 0 deletions
diff --git a/Scripts/.local/scripts/web-pdf b/Scripts/.local/scripts/web-pdf
new file mode 100755
index 0000000..624dd3c
--- /dev/null
+++ b/Scripts/.local/scripts/web-pdf
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+name="$(echo $1 | awk -F/ '{print $NF}')"
+
+curl $1 -o /tmp/$name;
+mupdf /tmp/$name;
+rm /tmp/$name;