diff options
author | Aki <please@ignore.pl> | 2020-08-06 20:53:45 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2020-08-06 20:53:45 +0200 |
commit | 5d57993c7979e64bc287faaf513314a52d634fed (patch) | |
tree | b14905ec3d55cabe015195b8fb97f80fb7b9b4d8 | |
parent | 72367c73af52c42ba6db815e510e71cbd5b5069f (diff) | |
download | browse-5d57993c7979e64bc287faaf513314a52d634fed.zip browse-5d57993c7979e64bc287faaf513314a52d634fed.tar.gz browse-5d57993c7979e64bc287faaf513314a52d634fed.tar.bz2 |
Changed browse to use opener and phttp
-rwxr-xr-x | browse | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -1,9 +1,2 @@ #!/bin/sh -TMP=$(mktemp -p /dev/shm) && - { TYPE=$(curl -sL -w "%{content_type}\n" $@ -o "$TMP") && case "$TYPE" in - application/pdf) zathura "$TMP";; - image/*) sxiv "$TMP";; - text/*) less "$TMP";; - *) hexdump "$TMP";; - esac } -rm -f "$TMP" +./phttp $@ | xargs ./opener |