From b13c8885d964339905217aa3cb066b4caf9c3160 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Tue, 12 Nov 2024 13:18:42 +0300 Subject: [PATCH] Yazi: Add audio shuffle. --- home/config/yazi/module/Yazi.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/home/config/yazi/module/Yazi.nix b/home/config/yazi/module/Yazi.nix index 0189f825..d966a941 100644 --- a/home/config/yazi/module/Yazi.nix +++ b/home/config/yazi/module/Yazi.nix @@ -44,6 +44,11 @@ orphan = true; run = openWith "mpv --no-video"; }]; + audioShuffle = [{ + desc = "Audio Shuffle"; + orphan = true; + run = "mpv --no-video --shuffle \"$@\"/**"; + }]; browser = [{ desc = "Browser"; orphan = true; @@ -132,6 +137,7 @@ (mkMime "video/*" [ "video" ]) (mkMime "text/html" [ "browser" ]) (mkMime "application/vnd.openxmlformats-officedocument.*" [ "document" ]) + (mkMime "inode/directory" [ "audioShuffle" ]) (mkMime "*" [ ]) ]; };