diff options
author | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2022-04-25 16:26:44 +0300 |
---|---|---|
committer | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2022-04-25 16:26:44 +0300 |
commit | 0ef2098ed7bc8de6e1443fd093201d7ec73054b5 (patch) | |
tree | 25e027070853cb1e41648415ecf84ae0ca334ed3 /dotfiles/.local | |
parent | 66494caeeca97047e8895f953d9b0179e7b20696 (diff) | |
download | swayrice-0ef2098ed7bc8de6e1443fd093201d7ec73054b5.tar.gz swayrice-0ef2098ed7bc8de6e1443fd093201d7ec73054b5.zip |
Add preview for xz archives
Diffstat (limited to 'dotfiles/.local')
-rwxr-xr-x | dotfiles/.local/bin/scope | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dotfiles/.local/bin/scope b/dotfiles/.local/bin/scope index 5a6c157..b5fccda 100755 --- a/dotfiles/.local/bin/scope +++ b/dotfiles/.local/bin/scope @@ -47,6 +47,7 @@ handle_mime() { --style="${HIGHLIGHT_STYLE}" --force -- "${FILE_PATH}" ;; application/zip) unzip -l -- "${FILE_PATH}" ;; application/gzip) tar -ztf "${FILE_PATH}" ;; + application/x-xz) tar -Jtf "${FILE_PATH}" ;; application/x-rar) unrar lb -- "${FILE_PATH}" ;; video/* | audio/*|application/octet-stream) mediainfo "${FILE_PATH}" | awk -F':' '{ print $2 }' || exit 1;; image/*) exiftool "${FILE_PATH}";; |