summaryrefslogtreecommitdiff
path: root/lf/lfrc
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2023-06-24 15:45:02 -0500
committerzachir <zachir@librem.one>2023-06-24 15:45:02 -0500
commit51aaa580bb965f805bfb139428171b9b1eaa8593 (patch)
tree97528b168f13f0f817f9830669f5ac1a93ef6270 /lf/lfrc
parent8cbc04f46b32d8f3e96b9c235a847692458d9cf7 (diff)
Use mpv preview for audio files
Diffstat (limited to 'lf/lfrc')
-rw-r--r--lf/lfrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/lf/lfrc b/lf/lfrc
index df622de..70b1b5b 100644
--- a/lf/lfrc
+++ b/lf/lfrc
@@ -13,6 +13,9 @@ cmd open ${{
jnlp)
javaws "$f"
;;
+ mp3|flac|webm|ogg)
+ mpv "$f"
+ ;;
*)
case $(file --mime-type "$f" -bL) in
text/*|application/json) $EDITOR "$f" ;;