Skip to main content

max / alloy

2.4 KB · 90 lines History Blame Raw
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 # Two key names here track yazi's schema and have already moved once. The
10 # section is `[mgr]`, renamed from `[manager]` in 25.5.31, and rules match on
11 # `url`, renamed from `name`. Both were still on the old spelling against yazi
12 # 26.5.6, and yazi does not warn about a key it does not know: it fails to
13 # parse the file, prints "continue with preset settings", and runs stock. The
14 # whole Akari theme in theme.toml went with it. Check both after a yazi bump.
15
16 [mgr]
17 ratio = [1, 3, 4] # parent / current / preview
18 sort_by = "natural"
19 sort_sensitive = false
20 sort_reverse = false
21 sort_dir_first = true
22 sort_translit = false
23 linemode = "size"
24 show_hidden = true
25 show_symlink = true
26 scrolloff = 5
27
28 [preview]
29 wrap = "no"
30 tab_size = 4
31 max_width = 1000
32 max_height = 1000
33 cache_dir = ""
34 image_filter = "triangle"
35 image_quality = 75
36 sixel_fraction = 15
37 ueberzug_scale = 1
38 ueberzug_offset = [0, 0, 0, 0]
39
40 [opener]
41 edit = [
42 { run = 'hx "$@"', block = true, for = "unix" },
43 ]
44 open = [
45 { run = 'xdg-open "$@"', desc = "Open", for = "linux" },
46 ]
47 reveal = [
48 { run = 'xdg-open "$(dirname "$1")"', desc = "Reveal", for = "linux" },
49 ]
50 play = [
51 { run = 'mpv --force-window "$@"', orphan = true, for = "unix" },
52 ]
53 view = [
54 { run = 'imv "$@"', orphan = true, for = "unix" },
55 ]
56 read-pdf = [
57 { run = 'zathura "$@"', orphan = true, for = "unix" },
58 ]
59
60 [open]
61 rules = [
62 { url = "*/", use = "open" },
63 { mime = "text/*", use = "edit" },
64 { mime = "image/*", use = "view" },
65 { mime = "video/*", use = "play" },
66 { mime = "audio/*", use = "play" },
67 { mime = "application/pdf", use = "read-pdf" },
68 { url = "*", use = "open" },
69 ]
70
71 [tasks]
72 micro_workers = 10
73 macro_workers = 25
74 bizarre_retry = 5
75 image_alloc = 536870912 # 512 MiB
76 image_bound = [0, 0]
77 suppress_preload = false
78
79 [plugin]
80 prepend_fetchers = []
81 prepend_preloaders = []
82 prepend_previewers = []
83
84 [input]
85 cd_title = "Change directory:"
86 cd_position = { origin = "top-center", offset = [0, 2], width = 50, height = 3 }
87
88 [log]
89 enabled = false
90