diff --git a/yazi/.config/yazi/theme.toml b/yazi/.config/yazi/theme.toml index 331d65a..1c95989 100644 --- a/yazi/.config/yazi/theme.toml +++ b/yazi/.config/yazi/theme.toml @@ -32,3 +32,25 @@ conds = [] [tabs] sep_inner = { open = "", close = "" } sep_outer = { open = "", close = "" } + +[filetype] +rules = [ + # Image + { mime = "image/*", fg = "yellow" }, + # Media + { mime = "{audio,video}/*", fg = "magenta" }, + # Archive + { mime = "application/{zip,rar,7z*,tar,gzip,xz,zstd,bzip*,lzma,compress,archive,cpio,arj,xar,ms-cab*}", fg = "red" }, + # Document + { mime = "application/{pdf,doc,rtf}", fg = "cyan" }, + # Virtual file system + { mime = "vfs/{absent,stale}", fg = "gray" }, + # Special file + { url = "*", is = "orphan", bg = "red" }, + { url = "*", is = "exec" , fg = "green", bold = true }, # bold + # Dummy file + { url = "*", is = "dummy", bg = "red" }, + { url = "*/", is = "dummy", bg = "red" }, + # Fallback + { url = "*/", fg = "blue", bold = true } # bold +]