diff options
-rw-r--r-- | .config/lf/lfrc | 1 | ||||
-rwxr-xr-x | .config/lf/scope | 1 |
2 files changed, 2 insertions, 0 deletions
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 |