diff options
author | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2021-05-04 03:42:36 +0300 |
---|---|---|
committer | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2021-05-04 03:42:36 +0300 |
commit | 703ca83b233e33dfdd544b85e2de760709a2a2bd (patch) | |
tree | c7d1968d25c7314c2af3819195fb9e92c95ea5c3 | |
parent | 7b0f37451da08ad99c3ce10998d772c9603645ec (diff) | |
parent | 73e21625747853abcbe39b09e38d140da6850636 (diff) | |
download | swayrice-703ca83b233e33dfdd544b85e2de760709a2a2bd.tar.gz swayrice-703ca83b233e33dfdd544b85e2de760709a2a2bd.zip |
Merge branch 'master' of git.yaroslavps.com:public/configs/swayrice
-rwxr-xr-x | dotfiles/.local/bin/scope | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dotfiles/.local/bin/scope b/dotfiles/.local/bin/scope index 092a206..d3041c1 100755 --- a/dotfiles/.local/bin/scope +++ b/dotfiles/.local/bin/scope @@ -48,7 +48,8 @@ handle_mime() { application/zip) unzip -l -- "${FILE_PATH}" ;; application/gzip) tar -ztf "${FILE_PATH}" ;; application/x-rar) unrar lb -- "${FILE_PATH}" ;; - video/* | audio/*|application/octet-stream | image/*) mediainfo "${FILE_PATH}" | awk -F':' '{ print $2 }' || exit 1;; + video/* | audio/*|application/octet-stream) mediainfo "${FILE_PATH}" | awk -F':' '{ print $2 }' || exit 1;; + image/*) exiftool "${FILE_PATH}";; */pdf) pdftotext -l 10 -nopgbrk -q -- "${FILE_PATH}" - ;; *opendocument*) odt2txt "${FILE_PATH}" ;; *) file -b "${FILE_PATH}" ;; |