diff --git a/home/file/yazi/module/Yazi.nix b/home/file/yazi/module/Yazi.nix index 9b8e337d..f772bf88 100644 --- a/home/file/yazi/module/Yazi.nix +++ b/home/file/yazi/module/Yazi.nix @@ -31,6 +31,14 @@ orphan = true; run = openWith "xdg-open"; }]; + archive = [{ + desc = "Archive"; + run = openWith "archive"; + }]; + archive_fast = [{ + desc = "Archive Fast"; + run = openWith "archive_fast"; + }]; audio = [{ desc = "Audio"; orphan = true; @@ -66,11 +74,20 @@ orphan = true; run = openWith "gimp"; }]; + mount = [{ + desc = "Mount"; + run = openWith "fmount"; + }]; pdf = [{ desc = "Pdf"; orphan = true; run = openWith "evince"; }]; + unlock = [{ + desc = "Unlock"; + block = true; + run = openWith "funlock"; + }]; text = [{ desc = "Text"; block = true; @@ -91,6 +108,8 @@ rules = let defaultUse = [ "text" + "archive" + "archive_fast" "hex" ]; mkMime = mime: use: { @@ -109,6 +128,8 @@ (mkMime "application/x-xz" [ "unpack" ]) (mkMime "application/zip" [ "unpack" ]) (mkMime "application/x-7z-compressed" [ "unpack" ]) + (mkMime "application/x-iso9660-image" [ "mount" ]) + (mkMime "application/x-raw-disk-image" [ "unlock" ]) (mkMime "application/pdf" [ "pdf" ]) (mkMime "audio/*" [ "audio" ]) (mkName "*.mka" [ "audio" ])