notohh
9018565460
Some checks failed
fmt check / check (push) Waiting to run
flake check / check (push) Has been cancelled
54 lines
962 B
Nix
54 lines
962 B
Nix
{pkgs, ...}: {
|
|
programs.yazi.settings = {
|
|
open.rules = [
|
|
{
|
|
mime = "text/*";
|
|
use = ["edit" "reveal"];
|
|
}
|
|
{
|
|
mime = "image/*";
|
|
use = ["image" "reveal"];
|
|
}
|
|
{
|
|
mime = "video/*";
|
|
use = ["play" "reveal"];
|
|
}
|
|
{
|
|
mime = "application/json";
|
|
use = ["edit" "reveal"];
|
|
}
|
|
{
|
|
mime = "*";
|
|
use = ["edit" "open" "reveal"];
|
|
}
|
|
];
|
|
opener = {
|
|
text = [
|
|
{
|
|
exec = ''hx "$@"'';
|
|
for = "linux";
|
|
}
|
|
];
|
|
image = [
|
|
{
|
|
exec = ''imv "$@" '';
|
|
block = true;
|
|
for = "linux";
|
|
}
|
|
];
|
|
video = [
|
|
{
|
|
exec = ''mpv "$@"'';
|
|
block = true;
|
|
for = "linux";
|
|
}
|
|
];
|
|
reveal = [
|
|
{
|
|
exec = ''${pkgs.exiftool}/bin/exiftool "$1";'';
|
|
block = true;
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|