aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorawy <awy@tutamail.com>2024-08-07 22:28:48 +0300
committerawy <awy@tutamail.com>2024-08-07 22:28:48 +0300
commit635613fbcb4441415a61807097875f5ee6eddd1c (patch)
treefe7d884760ee6f151d6bc864b94dcdfdb73e66a8
parent686358f0521e3d264e463a0af6b38e5e19d17376 (diff)
small fixes
-rw-r--r--.config/lf/lfrc1
-rwxr-xr-x.config/lf/scope1
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