dotfiles/.config/yazi/yazi.toml
Sergio Laín d866f1b11b
♻️ refactor(hypr): changed all the rules code
now is easier to read and mantain
2023-11-08 23:56:38 +01:00

71 lines
1.9 KiB
TOML

[manager]
layout = [1, 4, 3]
sort_by = "natural"
sort_reverse = false
sort_dir_first = true
show_hidden = false
show_symlink = true
[preview]
tab_size = 2
max_width = 600
max_height = 900
cache_dir = ""
[opener]
folder = [
{ exec = 'open -R "$@"', desc = "Reveal in Finder" },
{ exec = '$EDITOR "$@"' },
]
archive = [{ exec = 'file-roller "$1"', desc = "Extract here" }]
pdf = [{ exec = 'zathura "$1"', desc = "Open" }]
text = [{ exec = '$EDITOR "$@"', block = true }]
image = [
{ exec = 'geeqie --class center-float "$@"', desc = "Open" },
{ exec = '''exiftool "$1"; echo "Press enter to exit"; read''', block = true, desc = "Show EXIF" },
]
video = [
{ exec = 'celluloid "$@"' },
{ exec = '''mediainfo "$1"; echo "Press enter to exit"; read''', block = true, desc = "Show media info" },
]
audio = [
{ exec = 'celluloid "$@"' },
{ exec = '''mediainfo "$1"; echo "Press enter to exit"; read''', block = true, desc = "Show media info" },
]
fallback = [
{ exec = 'open "$@"', desc = "Open" },
{ exec = 'open -R "$@"', desc = "Reveal in Finder" },
]
[open]
rules = [
{ name = "*/", use = "folder" },
{ mime = "text/*", use = "text" },
{ mime = "image/*", use = "image" },
{ mime = "video/*", use = "video" },
{ mime = "audio/*", use = "audio" },
{ mime = "inode/x-empty", use = "text" },
{ mime = "application/json", use = "text" },
{ mime = "*/javascript", use = "text" },
{ mime = "application/pdf", use = "pdf" },
{ mime = "application/zip", use = "archive" },
{ mime = "application/gzip", use = "archive" },
{ mime = "application/x-bzip", use = "archive" },
{ mime = "application/x-bzip2", use = "archive" },
{ mime = "application/x-tar", use = "archive" },
{ mime = "application/x-7z-compressed", use = "archive" },
{ mime = "application/x-rar", use = "archive" },
{ mime = "*", use = "fallback" },
]
[tasks]
micro_workers = 5
macro_workers = 10
bizarre_retry = 5
[log]
enabled = false