+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.
This commit is contained in:
dx
2020-06-27 11:00:29 +01:00
parent 1c97ea3333
commit afa33b7491

7
Scripts/.local/scripts/web-pdf Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/sh
name="$(echo $1 | awk -F/ '{print $NF}')"
curl $1 -o /tmp/$name;
mupdf /tmp/$name;
rm /tmp/$name;