From 635613fbcb4441415a61807097875f5ee6eddd1c Mon Sep 17 00:00:00 2001 From: awy Date: Wed, 7 Aug 2024 22:28:48 +0300 Subject: small fixes --- .config/lf/lfrc | 1 + .config/lf/scope | 1 + 2 files changed, 2 insertions(+) diff --git a/.config/lf/lfrc b/.config/lf/lfrc index 3d0ca82..cea084e 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -7,6 +7,7 @@ cmd open ${{ case $(file --mime-type "$(readlink -f $f)" -b) in text/*|application/json|inode/x-empty|application/x-subrip) $EDITOR $fx;; video/*) setsid -f mpv $f -quiet >/dev/null 2>&1 ;; + audio/*|video/x-ms-asf) mpv --audio-display=no $f ;; *) for f in $fx; do setsid -f $OPENER $f >/dev/null 2>&1; done;; esac }} diff --git a/.config/lf/scope b/.config/lf/scope index b00501a..a7d0bc1 100755 --- a/.config/lf/scope +++ b/.config/lf/scope @@ -14,6 +14,7 @@ case "$(file -Lb --mime-type "$file")" in image/*) draw "$file" ;; + audio/* | application/octet-stream) mediainfo "$1" || exit 1 ;; video/*) # vidthumb is from here: # https://raw.githubusercontent.com/duganchen/kitty-pistol-previewer/main/vidthumb -- cgit v1.2.3