Skip to content

Commit

Permalink
home/tools/yazi: enable mpv on darwin again
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman committed Dec 31, 2024
1 parent 4837e49 commit 59d226d
Showing 1 changed file with 18 additions and 22 deletions.
40 changes: 18 additions & 22 deletions modules/home/programs/terminal/tools/yazi/yazi.nix
Original file line number Diff line number Diff line change
Expand Up @@ -101,28 +101,24 @@
for = "windows";
}
];
play =
[
{
run = "${lib.getExe pkgs.mediainfo} \"$1\"; echo \"Press enter to exit\"; read _";
block = true;
desc = "Show media info";
for = "unix";
}
]
# FIXME: swift broken nixpkgs
++ lib.optionals pkgs.stdenv.isLinux [
{
run = "${lib.getExe config.programs.mpv.package} \"$@\"";
orphan = true;
for = "unix";
}
{
run = "${lib.getExe config.programs.mpv.package} \"%1\"";
orphan = true;
for = "windows";
}
];
play = [
{
run = "${lib.getExe pkgs.mediainfo} \"$1\"; echo \"Press enter to exit\"; read _";
block = true;
desc = "Show media info";
for = "unix";
}
{
run = "${lib.getExe config.programs.mpv.package} \"$@\"";
orphan = true;
for = "unix";
}
{
run = "${lib.getExe config.programs.mpv.package} \"%1\"";
orphan = true;
for = "windows";
}
];
};

open =
Expand Down

0 comments on commit 59d226d

Please sign in to comment.