diff options
| author | beeb5k <beebeeb5k@gmail.com> | 2026-03-06 21:37:34 +0530 |
|---|---|---|
| committer | beeb5k <beebeeb5k@gmail.com> | 2026-03-06 21:37:34 +0530 |
| commit | 0de067092c9dd19c3352554e39de73e172f29b42 (patch) | |
| tree | 4175503766405733846687efdb29657bb322dccd /common/modules/matugen/templates/matugen-yazi.nix | |
| parent | f1de2014dcd426e015a2638222160d9d349ea4e5 (diff) | |
Add modules
Diffstat (limited to 'common/modules/matugen/templates/matugen-yazi.nix')
| -rw-r--r-- | common/modules/matugen/templates/matugen-yazi.nix | 197 |
1 files changed, 197 insertions, 0 deletions
diff --git a/common/modules/matugen/templates/matugen-yazi.nix b/common/modules/matugen/templates/matugen-yazi.nix new file mode 100644 index 0000000..4985b8e --- /dev/null +++ b/common/modules/matugen/templates/matugen-yazi.nix @@ -0,0 +1,197 @@ +{ + config, + lib, + ... +}: +{ + config = lib.mkIf config.programs.yazi.enable { + xdg.configFile = { + "matugen/templates/yazi.toml" = { + text = '' + # : Manager [[[ + + [mgr] + cwd = { fg = "{{colors.on_surface.default.hex}}" } + + # Find + find_keyword = { fg = "{{colors.error.default.hex}}", bold = true, italic = true, underline = true } + find_position = { fg = "{{colors.error.default.hex}}", bold = true, italic = true } + + # Marker + marker_copied = { fg = "{{colors.tertiary_fixed.default.hex | auto_lightness: 20.0}}", bg = "{{colors.tertiary_fixed.default.hex | auto_lightness: 20.0}}" } + marker_cut = { fg = "{{colors.tertiary_fixed.default.hex}}", bg = "{{colors.tertiary_fixed.default.hex}}" } + marker_marked = { fg = "{{colors.error.default.hex}}", bg = "{{colors.error.default.hex}}" } + marker_selected = { fg = "{{colors.tertiary.default.hex}}", bg = "{{colors.tertiary.default.hex}}" } + + # Count + count_copied = { fg = "{{colors.on_tertiary_fixed.default.hex}}", bg = "{{colors.tertiary_fixed.default.hex}}" } + count_cut = { fg = "{{colors.on_tertiary_fixed.default.hex}}", bg = "{{colors.tertiary_fixed.default.hex}}" } + count_selected = { fg = "{{colors.on_primary.default.hex}}", bg = "{{colors.tertiary.default.hex}}" } + + # Border + border_symbol = "│" + border_style = { fg = "{{colors.surface_tint.default.hex}}" } + + # : ]]] + + + # : Indicator [[[ + + [indicator] + padding = { open = "█", close = "█" } + + # : ]]] + + + # : Tabs [[[ + + [tabs] + active = { fg = "{{colors.primary.default.hex}}", bold = true, bg = "{{colors.surface.default.hex}}" } + inactive = { fg = "{{colors.secondary.default.hex}}", bg = "{{colors.surface.default.hex}}" } + sep_inner = { open = "[", close = "]" } + + # : ]]] + + + # : Mode [[[ + + [mode] + # Mode + normal_main = { bg = "{{colors.primary.default.hex}}", fg = "{{colors.on_primary.default.hex}}", bold = true } + normal_alt = { bg = "{{colors.surface_variant.default.hex}}", fg = "{{colors.on_surface_variant.default.hex}}" } + + # Select mode + select_main = { bg = "{{colors.secondary.default.hex}}", fg = "{{colors.on_secondary.default.hex}}", bold = true } + select_alt = { bg = "{{colors.surface_variant.default.hex}}", fg = "{{colors.on_surface_variant.default.hex}}" } + + # Unset mode + unset_main = { bg = "{{colors.tertiary.default.hex}}", fg = "{{colors.on_tertiary.default.hex}}", bold = true } + unset_alt = { bg = "{{colors.surface_variant.default.hex}}", fg = "{{colors.on_surface_variant.default.hex}}" } + + # : ]]] + + + # : Status [[[ + + [status] + sep_left = { open = "🭁", close = "🭠" } + sep_right = { open = "🭁", close = "🭠" } + + # Permissions + perm_type = { fg = "{{colors.secondary.default.hex | auto_lightness: 30.0}}" } + perm_write = { fg = "{{colors.tertiary.default.hex | auto_lightness: 30.0}}" } + perm_read = { fg = "{{colors.error.default.hex | auto_lightness: 30.0}}" } + perm_exec = { fg = "{{colors.tertiary_fixed.default.hex | auto_lightness: 30.0}}" } + perm_sep = { fg = "{{colors.primary_fixed.default.hex | auto_lightness: 30.0}}" } + + # Progress + progress_label = { bold = true } + progress_normal = { fg = "{{colors.primary.default.hex}}", bg = "{{colors.surface_bright.default.hex}}" } + progress_error = { fg = "{{colors.error.default.hex}}", bg = "{{colors.surface_bright.default.hex}}" } + + # : ]]] + + + # : Which [[[ + + [which] + cols = 3 + mask = { bg = "{{colors.surface_bright.default.hex}}" } + cand = { fg = "{{colors.primary.default.hex}}" } + rest = { fg = "{{colors.on_primary.default.hex}}" } + desc = { fg = "{{colors.on_surface.default.hex}}" } + separator = " ▶ " + separator_style = { fg = "{{colors.on_surface.default.hex}}" } + + # : ]]] + + + # : Notify [[[ + + [notify] + title_info = { fg = "{{colors.tertiary.default.hex}}" } + title_warn = { fg = "{{colors.primary.default.hex}}" } + title_error = { fg = "{{colors.error.default.hex}}" } + + # : ]]] + + + # : Picker [[[ + + [pick] + border = { fg = "{{colors.primary.default.hex}}" } + active = { fg = "{{colors.tertiary.default.hex}}", bold = true } + inactive = {} + + # : ]]] + + + # : Input [[[ + + [input] + border = { fg = "{{colors.primary.default.hex}}" } + value = { fg = "{{colors.on_surface.default.hex}}" } + + # : ]]] + + + # : Completion [[[ + + [cmp] + border = { fg = "{{colors.primary.default.hex}}", bg = "{{colors.on_primary.default.hex}}" } + + # : ]]] + + + # : Tasks [[[ + + [tasks] + border = { fg = "{{colors.primary.default.hex}}" } + title = {} + hovered = { fg = "{{colors.tertiary_fixed.default.hex}}", underline = true } + + # : ]]] + + + # : Help [[[ + + [help] + on = { fg = "{{colors.on_surface.default.hex}}" } + run = { fg = "{{colors.on_surface.default.hex}}" } + footer = { fg = "{{colors.on_secondary.default.hex}}", bg = "{{colors.secondary.default.hex}}" } + + # : ]]] + + + # : File-specific styles [[[ + + [filetype] + + rules = [ + # Images + { mime = "image/*", fg = "#94e2d5" }, + + # Media + { mime = "{audio,video}/*", fg = "#f9e2af" }, + + # Archives + { mime = "application/{zip,rar,7z*,tar,gzip,xz,zstd,bzip*,lzma,compress,archive,cpio,arj,xar,ms-cab*}", fg = "#f5c2e7" }, + + # Documents + { mime = "application/{pdf,doc,rtf}", fg = "#a6e3a1" }, + + # Special files + { name = "*", is = "orphan", bg = "{{colors.error_container.default.hex}}" }, + { name = "*", is = "exec", fg = "{{colors.on_error_container.default.hex}}" }, + + # Fallback + { url = "*", fg = "{{colors.on_surface.default.hex}}" }, + { url = "*/", fg = "{{colors.surface_tint.default.hex}}" }, + ] + + # : ]]] + ''; + }; + }; + }; +} |
