Yazi makeover

This commit is contained in:
agryphus 2024-03-18 16:07:27 -04:00
parent 49e4e79ed4
commit 8780604ade
4 changed files with 226 additions and 195 deletions

View file

@ -10,7 +10,7 @@
cwd = { fg = "white", bold = true }
# Hovered
hovered = { fg = "black", bg = "lightblue" }
hovered = { reversed = true }
preview_hovered = { underline = true }
# Find
@ -40,19 +40,19 @@ syntect_theme = ""
# : Status {{{
[status]
separator_open = ""
separator_close = ""
separator_open = ""
separator_close = ""
separator_style = { fg = "darkgray", bg = "darkgray" }
# Mode
mode_normal = { fg = "black", bg = "lightblue", bold = true }
mode_select = { fg = "black", bg = "lightgreen", bold = true }
mode_unset = { fg = "black", bg = "lightmagenta", bold = true }
mode_normal = { fg = "black", bg = "lightblue", bold = false }
mode_select = { fg = "black", bg = "lightgreen", bold = false }
mode_unset = { fg = "black", bg = "lightmagenta", bold = false }
# Progress
progress_label = { bold = true }
progress_normal = { fg = "blue", bg = "black" }
progress_error = { fg = "red", bg = "black" }
progress_error = { fg = "red", bg = "black" }
# Permissions
permissions_t = { fg = "lightgreen" }
@ -141,84 +141,86 @@ footer = { fg = "black", bg = "white" }
[filetype]
rules = [
# Images
{ mime = "image/*", fg = "magenta" },
# Images
{ mime = "image/*", fg = "magenta" },
# Videos
{ mime = "video/*", fg = "green" },
{ mime = "audio/*", fg = "green" },
# Videos
{ mime = "video/*", fg = "green" },
{ mime = "audio/*", fg = "green" },
# Archives
{ mime = "application/zip", fg = "red" },
{ mime = "application/gzip", fg = "red" },
{ mime = "application/x-tar", fg = "red" },
{ mime = "application/x-bzip", fg = "red" },
{ mime = "application/x-bzip2", fg = "red" },
{ mime = "application/x-7z-compressed", fg = "red" },
{ mime = "application/x-rar", fg = "red" },
{ mime = "application/xz", fg = "red" },
# Archives
{ mime = "application/zip", fg = "red" },
{ mime = "application/gzip", fg = "red" },
{ mime = "application/x-tar", fg = "red" },
{ mime = "application/x-bzip", fg = "red" },
{ mime = "application/x-bzip2", fg = "red" },
{ mime = "application/x-7z-compressed", fg = "red" },
{ mime = "application/x-rar", fg = "red" },
{ mime = "application/xz", fg = "red" },
# Documents
# { mime = "application/doc", fg = "green" },
{ mime = "application/pdf", fg = "magenta" },
# { mime = "application/rtf", fg = "green" },
# { mime = "application/vnd.*", fg = "green" },
# Documents
# { mime = "application/doc", fg = "green" },
{ mime = "application/pdf", fg = "magenta" },
# { mime = "application/rtf", fg = "green" },
# { mime = "application/vnd.*", fg = "green" },
# Fallback
# { name = "*", fg = "white" },
{ name = "*", fg = "yellow", bold = true, is = "exec" },
{ name = "*/", fg = "blue", bold = true }
# Fallback
# { name = "*", fg = "white" },
{ name = "*", fg = "cyan", bold = true, is = "link" },
{ name = "*", fg = "green", bold = true, is = "exec" },
{ name = "*/", fg = "cyan", bold = true, is = "link" },
{ name = "*/", fg = "blue", bold = true }
]
[icon]
rules = [
# Programming
{ name = "*.cpp" , text = "", fg = "#519aba" },
{ name = "*.css" , text = "", fg = "#42a5f5" },
{ name = "*.c" , text = "", fg = "#599eff" },
{ name = "*.fish" , text = "" },
{ name = "*.go" , text = "", fg = "#519aba" },
{ name = "*.hpp" , text = "", fg = "#a074c4" },
{ name = "*.h" , text = "", fg = "#a074c4" },
{ name = "*.htm" , text = "", fg = "#e44d26" },
{ name = "*.html" , text = "", fg = "#e44d26" },
{ name = "*.java" , text = "", fg = "#cc3e44" },
{ name = "*.js" , text = "", fg = "#F1F134" },
{ name = "*.jsx" , text = "", fg = "#20c2e3" },
{ name = "*.lua" , text = "", fg = "#51a0cf" },
{ name = "*.nix" , text = "", fg = "#7ab1db" },
{ name = "*.php" , text = "" },
{ name = "*.rb" , text = "" },
{ name = "*.rs" , text = "", fg = "#dea584" },
{ name = "*.scss" , text = "" },
{ name = "*.sh" , text = "", fg = "#4d5a5e" },
{ name = "*.swift", text = "" },
{ name = "*.ts" , text = "", fg = "#519aba" },
{ name = "*.tsx" , text = "" },
{ name = "*.vim" , text = "" },
{ name = "*.vue" , text = "󰡄" },
{ name = "*.py" , text = "", fg = "#ffbc03" },
{ name = "*.pyc" , text = "", fg = "#ffe291" },
# Programming
{ name = "*.cpp" , text = "", fg = "#519aba" },
{ name = "*.css" , text = "", fg = "#42a5f5" },
{ name = "*.c" , text = "", fg = "#599eff" },
{ name = "*.fish" , text = "" },
{ name = "*.go" , text = "", fg = "#519aba" },
{ name = "*.hpp" , text = "", fg = "#a074c4" },
{ name = "*.h" , text = "", fg = "#a074c4" },
{ name = "*.htm" , text = "", fg = "#e44d26" },
{ name = "*.html" , text = "", fg = "#e44d26" },
{ name = "*.java" , text = "", fg = "#cc3e44" },
{ name = "*.js" , text = "", fg = "#F1F134" },
{ name = "*.jsx" , text = "", fg = "#20c2e3" },
{ name = "*.lua" , text = "", fg = "#51a0cf" },
{ name = "*.nix" , text = "", fg = "#7ab1db" },
{ name = "*.php" , text = "" },
{ name = "*.rb" , text = "" },
{ name = "*.rs" , text = "", fg = "#dea584" },
{ name = "*.scss" , text = "" },
{ name = "*.sh" , text = "", fg = "#4d5a5e" },
{ name = "*.swift", text = "" },
{ name = "*.ts" , text = "", fg = "#519aba" },
{ name = "*.tsx" , text = "" },
{ name = "*.vim" , text = "" },
{ name = "*.vue" , text = "󰡄" },
{ name = "*.py" , text = "", fg = "#ffbc03" },
{ name = "*.pyc" , text = "", fg = "#ffe291" },
# Text
{ name = "*.txt" , text = "", fg = "#bbbbbb" },
{ name = "*.csv" , text = "", fg = "#89e051" },
{ name = "*.json" , text = "", fg = "#cbcb41" },
{ name = "*.conf" , text = "", fg = "#6d8086" }, # Configuration
{ name = "*.ini" , text = "", fg = "#6d8086" },
{ name = "*.yaml" , text = "", fg = "#6d8086" },
{ name = "*.yml" , text = "", fg = "#6d8086" },
{ name = "*.toml" , text = "", fg = "#6d8086" },
{ name = "*.org" , text = "", fg = "#77aa99" },
{ name = "*.tex" , text = "󰙩", fg = "#3d6117" }, # Plaintext typesetting
{ name = "*.typ" , text = "󰙩", fg = "#0e606a" },
{ name = "*.markdown", text = "", fg = "#519aba" }, # Markdown
{ name = "*.md" , text = "", fg = "#519aba" },
{ name = "*.mdx" , text = "", fg = "#519aba" },
{ name = "*.rmd" , text = "", fg = "#519aba" },
# Text
{ name = "*.txt" , text = "", fg = "#bbbbbb" },
{ name = "*.csv" , text = "", fg = "#89e051" },
{ name = "*.json" , text = "", fg = "#cbcb41" },
{ name = "*.conf" , text = "", fg = "#6d8086" }, # Configuration
{ name = "*.ini" , text = "", fg = "#6d8086" },
{ name = "*.yaml" , text = "", fg = "#6d8086" },
{ name = "*.yml" , text = "", fg = "#6d8086" },
{ name = "*.toml" , text = "", fg = "#6d8086" },
{ name = "*.org" , text = "", fg = "#77aa99" },
{ name = "*.tex" , text = "󰙩", fg = "#3d6117" }, # Plaintext typesetting
{ name = "*.typ" , text = "󰙩", fg = "#0e606a" },
{ name = "*.markdown", text = "", fg = "#519aba" }, # Markdown
{ name = "*.md" , text = "", fg = "#519aba" },
{ name = "*.mdx" , text = "", fg = "#519aba" },
{ name = "*.rmd" , text = "", fg = "#519aba" },
# Archives
# Archives
{ name = "*.7z" , text = "" },
{ name = "*.ace" , text = "" },
{ name = "*.alz" , text = "" },
@ -266,7 +268,7 @@ rules = [
{ name = "*.zst" , text = "" },
{ name = "*.z" , text = "" },
# Images
# Images
{ name = "*.bmp" , text = "" }, # Lossless
{ name = "*.gif" , text = "" },
{ name = "*.png" , text = "" },
@ -288,7 +290,7 @@ rules = [
{ name = "*.xbm" , text = "" },
{ name = "*.xpm" , text = "" },
# Movies
# Movies
{ name = "*.asf" , text = "" },
{ name = "*.avi" , text = "" },
{ name = "*.cgm" , text = "" },
@ -320,78 +322,79 @@ rules = [
{ name = "*.xwd" , text = "" },
{ name = "*.yuv" , text = "" },
# Audio
{ name = "*.aac" , text = "" },
{ name = "*.au" , text = "" },
{ name = "*.flac", text = "" },
{ name = "*.m4a" , text = "" },
{ name = "*.mid" , text = "" },
{ name = "*.midi", text = "" },
{ name = "*.mka" , text = "" },
{ name = "*.mp3" , text = "" },
{ name = "*.mpc" , text = "" },
{ name = "*.oga" , text = "" },
{ name = "*.ogg" , text = "" },
{ name = "*.opus", text = "" },
{ name = "*.ra" , text = "" },
{ name = "*.spx" , text = "" },
{ name = "*.wav" , text = "" },
{ name = "*.xspf", text = "" },
# Audio
{ name = "*.aac" , text = "" },
{ name = "*.au" , text = "" },
{ name = "*.flac", text = "" },
{ name = "*.m4a" , text = "" },
{ name = "*.mid" , text = "" },
{ name = "*.midi", text = "" },
{ name = "*.mka" , text = "" },
{ name = "*.mp3" , text = "" },
{ name = "*.mpc" , text = "" },
{ name = "*.oga" , text = "" },
{ name = "*.ogg" , text = "" },
{ name = "*.opus", text = "" },
{ name = "*.ra" , text = "" },
{ name = "*.spx" , text = "" },
{ name = "*.wav" , text = "" },
{ name = "*.xspf", text = "" },
# Documents
{ name = "*.pdf" , text = "", fg = "#b30b00" }, # Printable
{ name = "*.doc" , text = "", fg = "#185abd" }, # Non plaintext docs
{ name = "*.doct", text = "", fg = "#185abd" },
{ name = "*.docx", text = "", fg = "#185abd" },
# Documents
{ name = "*.pdf" , text = "", fg = "#b30b00" }, # Printable
{ name = "*.doc" , text = "", fg = "#185abd" }, # Non plaintext docs
{ name = "*.doct", text = "", fg = "#185abd" },
{ name = "*.docx", text = "", fg = "#185abd" },
{ name = "*.dot" , text = "", fg = "#185abd" },
{ name = "*.pom" , text = "󰈩", fg = "#cb4a32" }, # Presentations
{ name = "*.pot" , text = "󰈩", fg = "#cb4a32" },
{ name = "*.potx", text = "󰈩", fg = "#cb4a32" },
{ name = "*.ppm" , text = "󰈩", fg = "#cb4a32" },
{ name = "*.ppmx", text = "󰈩", fg = "#cb4a32" },
{ name = "*.pps" , text = "󰈩", fg = "#cb4a32" },
{ name = "*.ppsx", text = "󰈩", fg = "#cb4a32" },
{ name = "*.ppt" , text = "󰈩", fg = "#cb4a32" },
{ name = "*.pptx", text = "󰈩", fg = "#cb4a32" },
{ name = "*.xlc" , text = "" },
{ name = "*.xlm" , text = "" },
{ name = "*.xls" , text = "" },
{ name = "*.xlsm", text = "" },
{ name = "*.xlsx", text = "" },
{ name = "*.xlt" , text = "" },
{ name = "*.ods" , text = "" },
{ name = "*.ots" , text = "" },
{ name = "*.odg" , text = "󰽉" },
{ name = "*.pom" , text = "󰈩", fg = "#cb4a32" }, # Presentations
{ name = "*.pot" , text = "󰈩", fg = "#cb4a32" },
{ name = "*.potx", text = "󰈩", fg = "#cb4a32" },
{ name = "*.ppm" , text = "󰈩", fg = "#cb4a32" },
{ name = "*.ppmx", text = "󰈩", fg = "#cb4a32" },
{ name = "*.pps" , text = "󰈩", fg = "#cb4a32" },
{ name = "*.ppsx", text = "󰈩", fg = "#cb4a32" },
{ name = "*.ppt" , text = "󰈩", fg = "#cb4a32" },
{ name = "*.pptx", text = "󰈩", fg = "#cb4a32" },
{ name = "*.xlc" , text = "" },
{ name = "*.xlm" , text = "" },
{ name = "*.xls" , text = "" },
{ name = "*.xlsm", text = "" },
{ name = "*.xlsx", text = "" },
{ name = "*.xlt" , text = "" },
{ name = "*.ods" , text = "" },
{ name = "*.ots" , text = "" },
{ name = "*.odg" , text = "󰽉" },
# Lockfiles
{ name = "*.lock", text = "", fg = "#bbbbbb" },
# Lockfiles
{ name = "*.lock", text = "", fg = "#bbbbbb" },
# Misc
{ name = "*.bin", text = "" },
{ name = "*.exe", text = "" },
{ name = "*.pkg", text = "" },
# Misc
{ name = "*.bin", text = "" },
{ name = "*.exe", text = "" },
{ name = "*.pkg", text = "" },
# Dotfiles
{ name = ".DS_Store" , text = "" },
{ name = ".bashprofile" , text = "" },
{ name = ".bashrc" , text = "" },
{ name = ".gitattributes", text = "" },
{ name = ".gitignore" , text = "" },
{ name = ".gitmodules" , text = "" },
{ name = ".vimrc" , text = "" },
{ name = ".zprofile" , text = "" },
{ name = ".zshenv" , text = "" },
{ name = ".zshrc" , text = "" },
# Dotfiles
{ name = ".DS_Store" , text = "" },
{ name = ".bashprofile" , text = "" },
{ name = ".bashrc" , text = "" },
{ name = ".gitattributes", text = "" },
{ name = ".gitignore" , text = "" },
{ name = ".gitmodules" , text = "" },
{ name = ".vimrc" , text = "" },
{ name = ".zprofile" , text = "" },
{ name = ".zshenv" , text = "" },
{ name = ".zshrc" , text = "" },
# Named files
{ name = "COPYING" , text = "󰿃" },
{ name = "Containerfile", text = "󰡨", fg = "#458ee6" },
{ name = "Dockerfile" , text = "󰡨", fg = "#458ee6" },
{ name = "LICENSE" , text = "", fg = "#d0bf41" },
# Named files
{ name = "COPYING" , text = "󰿃" },
{ name = "Containerfile", text = "󰡨", fg = "#458ee6" },
{ name = "Dockerfile" , text = "󰡨", fg = "#458ee6" },
{ name = "LICENSE" , text = "", fg = "#d0bf41" },
# Default
{ name = "*" , text = "" },
{ name = "*/", text = "󰝰", fg = "yellow" },
# Default
{ name = "*", text = "", is = "exec" },
{ name = "*" , text = "" },
{ name = "*/", text = "󰝰", fg = "yellow" },
]
# : }}}