| 1 |
# Alloy yazi configuration |
| 2 |
# |
| 3 |
# TUI file manager per docs/STACK.md#file-manager. Image previews |
| 4 |
# routed through kitty graphics — yazi auto-detects from TERM_PROGRAM=rio |
| 5 |
# (STACK.md#terminal); no explicit backend key needed here. |
| 6 |
# |
| 7 |
# Theme in theme.toml. |
| 8 |
|
| 9 |
[manager] |
| 10 |
ratio = [1, 3, 4] # parent / current / preview |
| 11 |
sort_by = "natural" |
| 12 |
sort_sensitive = false |
| 13 |
sort_reverse = false |
| 14 |
sort_dir_first = true |
| 15 |
sort_translit = false |
| 16 |
linemode = "size" |
| 17 |
show_hidden = false |
| 18 |
show_symlink = true |
| 19 |
scrolloff = 5 |
| 20 |
|
| 21 |
[preview] |
| 22 |
wrap = "no" |
| 23 |
tab_size = 4 |
| 24 |
max_width = 1000 |
| 25 |
max_height = 1000 |
| 26 |
cache_dir = "" |
| 27 |
image_filter = "triangle" |
| 28 |
image_quality = 75 |
| 29 |
sixel_fraction = 15 |
| 30 |
ueberzug_scale = 1 |
| 31 |
ueberzug_offset = [0, 0, 0, 0] |
| 32 |
|
| 33 |
[opener] |
| 34 |
edit = [ |
| 35 |
{ run = 'hx "$@"', block = true, for = "unix" }, |
| 36 |
] |
| 37 |
open = [ |
| 38 |
{ run = 'xdg-open "$@"', desc = "Open", for = "linux" }, |
| 39 |
] |
| 40 |
reveal = [ |
| 41 |
{ run = 'xdg-open "$(dirname "$1")"', desc = "Reveal", for = "linux" }, |
| 42 |
] |
| 43 |
play = [ |
| 44 |
{ run = 'mpv --force-window "$@"', orphan = true, for = "unix" }, |
| 45 |
] |
| 46 |
view = [ |
| 47 |
{ run = 'imv "$@"', orphan = true, for = "unix" }, |
| 48 |
] |
| 49 |
read-pdf = [ |
| 50 |
{ run = 'zathura "$@"', orphan = true, for = "unix" }, |
| 51 |
] |
| 52 |
|
| 53 |
[open] |
| 54 |
rules = [ |
| 55 |
{ name = "*/", use = "open" }, |
| 56 |
{ mime = "text/*", use = "edit" }, |
| 57 |
{ mime = "image/*", use = "view" }, |
| 58 |
{ mime = "video/*", use = "play" }, |
| 59 |
{ mime = "audio/*", use = "play" }, |
| 60 |
{ mime = "application/pdf", use = "read-pdf" }, |
| 61 |
{ name = "*", use = "open" }, |
| 62 |
] |
| 63 |
|
| 64 |
[tasks] |
| 65 |
micro_workers = 10 |
| 66 |
macro_workers = 25 |
| 67 |
bizarre_retry = 5 |
| 68 |
image_alloc = 536870912 # 512 MiB |
| 69 |
image_bound = [0, 0] |
| 70 |
suppress_preload = false |
| 71 |
|
| 72 |
[plugin] |
| 73 |
prepend_fetchers = [] |
| 74 |
prepend_preloaders = [] |
| 75 |
prepend_previewers = [] |
| 76 |
|
| 77 |
[input] |
| 78 |
cd_title = "Change directory:" |
| 79 |
cd_position = { origin = "top-center", offset = [0, 2], width = 50, height = 3 } |
| 80 |
|
| 81 |
[log] |
| 82 |
enabled = false |
| 83 |
|