diff options
author | dx <aryadevchavali1@gmail.com> | 2020-06-27 11:00:29 +0100 |
---|---|---|
committer | dx <aryadevchavali1@gmail.com> | 2020-06-27 11:00:29 +0100 |
commit | afa33b7491bd5fd0cc5c42b6374a85b43c3a0333 (patch) | |
tree | 0c8ed73a8f7f3f606b8e51626b8bfa5430d6480f /Scripts/.local/scripts | |
parent | 1c97ea3333b8bcd06635b526dcb42e400fbc632b (diff) | |
download | dotfiles-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/.local/scripts')
-rwxr-xr-x | Scripts/.local/scripts/web-pdf | 7 |
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; |