diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-25 08:39:24 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-25 08:39:24 +1200 |
commit | af1cc7cbaac0caf77df8ef056c2e0ec09bfc3b3c (patch) | |
tree | f3df66aec5feedb8c62928a24497d49a19d32630 /bin | |
parent | Update submodules (diff) | |
download | dotfiles-af1cc7cbaac0caf77df8ef056c2e0ec09bfc3b3c.tar.gz dotfiles-af1cc7cbaac0caf77df8ef056c2e0ec09bfc3b3c.zip |
Open PDFs with xpdf(1)
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/xgo | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -28,6 +28,13 @@ for url ; do ( # If the MIME type is an image, load it in feh(1) case $mt in + application/pdf) + ( + cd -- "$HOME"/Downloads || exit + curl -O -- "$url" || exit + xpdf -- "${url##*/}" || exit + ) && exit + ;; audio/*|video/*) mpv --force-window -- "$url" && exit ;; |