another small reorg
This commit is contained in:
45
home/opt/yazi/default.nix
Normal file
45
home/opt/yazi/default.nix
Normal file
@@ -0,0 +1,45 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./theme/filetype.nix
|
||||
./theme/icons.nix
|
||||
./theme/manager.nix
|
||||
./theme/status.nix
|
||||
];
|
||||
|
||||
# general file info
|
||||
home.packages = [pkgs.exiftool];
|
||||
|
||||
# yazi file manager
|
||||
programs.yazi = {
|
||||
enable = true;
|
||||
|
||||
package = pkgs.yazi;
|
||||
|
||||
enableBashIntegration = config.programs.bash.enable;
|
||||
enableZshIntegration = config.programs.zsh.enable;
|
||||
|
||||
settings = {
|
||||
manager = {
|
||||
layout = [1 4 3];
|
||||
sort_by = "alphabetical";
|
||||
sort_sensitive = true;
|
||||
sort_reverse = false;
|
||||
sort_dir_first = true;
|
||||
linemode = "none";
|
||||
show_hidden = false;
|
||||
show_symlink = true;
|
||||
};
|
||||
|
||||
preview = {
|
||||
tab_size = 2;
|
||||
max_width = 600;
|
||||
max_height = 900;
|
||||
cache_dir = config.xdg.cacheHome;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
2657
home/opt/yazi/theme/filetype.nix
Normal file
2657
home/opt/yazi/theme/filetype.nix
Normal file
File diff suppressed because it is too large
Load Diff
503
home/opt/yazi/theme/icons.nix
Normal file
503
home/opt/yazi/theme/icons.nix
Normal file
@@ -0,0 +1,503 @@
|
||||
{
|
||||
programs.yazi.theme.icon.rules = [
|
||||
# Home
|
||||
{
|
||||
name = ".config/";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = ".ssh/";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "Desktop/";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "Development/";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "Documents/";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "Downloads/";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "Library/";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "Movies/";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "Music/";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "Pictures/";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "Videos/";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "Public/";
|
||||
text = "";
|
||||
}
|
||||
|
||||
# Git
|
||||
{
|
||||
name = ".git/";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = ".gitignore";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = ".gitmodules";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = ".gitattributes";
|
||||
text = "";
|
||||
}
|
||||
|
||||
# Dotfiles
|
||||
{
|
||||
name = ".DS_Store";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = ".bashrc";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = ".bashprofile";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = ".zshrc";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = ".zshenv";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = ".zprofile";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = ".vimrc";
|
||||
text = "";
|
||||
}
|
||||
|
||||
# Text
|
||||
{
|
||||
name = "*.txt";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.md";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.rst";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "COPYING";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "LICENSE";
|
||||
text = "";
|
||||
}
|
||||
|
||||
# Archives
|
||||
{
|
||||
name = "*.zip";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.tar";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.gz";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.7z";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.bz2";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.xz";
|
||||
text = "";
|
||||
}
|
||||
|
||||
# Documents
|
||||
{
|
||||
name = "*.csv";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.doc";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.doct";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.docx";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.dot";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.ods";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.ots";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.pdf";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.pom";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.pot";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.ppm";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.pps";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.ppt";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.potx";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.ppmx";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.ppsx";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.pptx";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.xlc";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.xlm";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.xls";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.xlt";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.xlsm";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.xlsx";
|
||||
text = "";
|
||||
}
|
||||
|
||||
# Audio
|
||||
{
|
||||
name = "*.mp3";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.flac";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.wav";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.aac";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.ogg";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.m4a";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.mp2";
|
||||
text = "";
|
||||
}
|
||||
|
||||
# Movies
|
||||
{
|
||||
name = "*.mp4";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.mkv";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.avi";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.mov";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.webm";
|
||||
text = "";
|
||||
}
|
||||
|
||||
# Images
|
||||
{
|
||||
name = "*.jpg";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.jpeg";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.png";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.gif";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.webp";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.avif";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.bmp";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.ico";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.svg";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.xcf";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.HEIC";
|
||||
text = "";
|
||||
}
|
||||
|
||||
# Programming
|
||||
{
|
||||
name = "*.c";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.cpp";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.h";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.hpp";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.rs";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.go";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.py";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.hs";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.js";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.ts";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.tsx";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.jsx";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.rb";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.php";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.java";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.sh";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.fish";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.swift";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.vim";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.lua";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.html";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.css";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.sass";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.scss";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.json";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.toml";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.yml";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.yaml";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.ini";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.conf";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.lock";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.nix";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "Containerfile";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "Dockerfile";
|
||||
text = "";
|
||||
}
|
||||
|
||||
# Misc
|
||||
{
|
||||
name = "*.bin";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.exe";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*.pkg";
|
||||
text = "";
|
||||
}
|
||||
|
||||
# Default
|
||||
{
|
||||
name = "*";
|
||||
text = "";
|
||||
}
|
||||
{
|
||||
name = "*/";
|
||||
text = "";
|
||||
}
|
||||
];
|
||||
}
|
||||
63
home/opt/yazi/theme/manager.nix
Normal file
63
home/opt/yazi/theme/manager.nix
Normal file
@@ -0,0 +1,63 @@
|
||||
{
|
||||
programs.yazi.theme.manager = {
|
||||
cwd = {fg = "cyan";};
|
||||
|
||||
# Hovered
|
||||
hovered = {
|
||||
fg = "black";
|
||||
bg = "lightblue";
|
||||
};
|
||||
|
||||
preview_hovered = {
|
||||
fg = "black";
|
||||
bg = "lightblue";
|
||||
};
|
||||
|
||||
# Find
|
||||
find_keyword = {
|
||||
fg = "yellow";
|
||||
italic = true;
|
||||
};
|
||||
find_position = {
|
||||
fg = "magenta";
|
||||
bg = "reset";
|
||||
italic = true;
|
||||
};
|
||||
|
||||
# Marker
|
||||
marker_selected = {
|
||||
fg = "lightgreen";
|
||||
bg = "lightgreen";
|
||||
};
|
||||
marker_copied = {
|
||||
fg = "lightyellow";
|
||||
bg = "lightyellow";
|
||||
};
|
||||
marker_cut = {
|
||||
fg = "lightred";
|
||||
bg = "lightred";
|
||||
};
|
||||
|
||||
# Tab
|
||||
tab_active = {
|
||||
fg = "black";
|
||||
bg = "lightblue";
|
||||
};
|
||||
tab_inactive = {
|
||||
fg = "white";
|
||||
bg = "darkgray";
|
||||
};
|
||||
tab_width = 1;
|
||||
|
||||
# Border;
|
||||
border_symbol = "│";
|
||||
border_style = {fg = "gray";};
|
||||
|
||||
# Offset;
|
||||
folder_offset = [1 0 1 0];
|
||||
preview_offset = [1 1 1 1];
|
||||
|
||||
# Highlighting;
|
||||
syntect_theme = "";
|
||||
};
|
||||
}
|
||||
45
home/opt/yazi/theme/status.nix
Normal file
45
home/opt/yazi/theme/status.nix
Normal file
@@ -0,0 +1,45 @@
|
||||
{
|
||||
programs.yazi.theme.status = {
|
||||
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;
|
||||
};
|
||||
|
||||
# Progress;
|
||||
progress_label = {bold = true;};
|
||||
progress_normal = {
|
||||
fg = "blue";
|
||||
bg = "black";
|
||||
};
|
||||
progress_error = {
|
||||
fg = "red";
|
||||
bg = "black";
|
||||
};
|
||||
|
||||
# Permissions;
|
||||
permissions_t = {fg = "blue";};
|
||||
permissions_r = {fg = "lightyellow";};
|
||||
permissions_w = {fg = "lightred";};
|
||||
permissions_x = {fg = "lightgreen";};
|
||||
permissions_s = {fg = "darkgray";};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user