summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2023-06-24 15:45:02 -0500
committerzachir <zachir@librem.one>2023-10-19 09:15:59 -0500
commit33e3750a15ab57b25ff924ded0a0ecfadb5ce184 (patch)
tree32a5cc4c454c1c872e69748076890bd5cbd2445c
parent84946c4f5ea15e611d92ee296be80e0ceb0b0ed5 (diff)
Use mpv preview for audio files
-rw-r--r--lf/lfrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/lf/lfrc b/lf/lfrc
index d83069e..702fc2d 100644
--- a/lf/lfrc
+++ b/lf/lfrc
@@ -15,6 +15,9 @@ cmd open ${{
jnlp)
javaws "$f"
;;
+ mp3|flac|webm|ogg)
+ mpv "$f"
+ ;;
*)
case $(file --mime-type "$f" -bL) in
text/*|application/json) $EDITOR "$f" ;;