fix: yazi

This commit is contained in:
2026-05-06 19:46:58 +02:00
parent 3f463c5dc7
commit 26cbf784b2
3 changed files with 14 additions and 37 deletions

View File

@@ -70,14 +70,14 @@
statusBar = "ashell"; # available: ashell | waybar
pathConfig = {
wallpaper = "Obrazy/tapety/catppuccin";
screenshot = "Obrazy/zrzuty/";
obsidian = "Dokumenty/obsidian";
projects = "Kodowanie";
documents = "Dokumenty";
pictures = "Obrazy";
downloads = "Pobrane";
video = "Video";
wallpaper = "Obrazy/tapety/catppuccin"; # relative to $HOME/
screenshot = "Obrazy/zrzuty/"; # relative to $HOME/
obsidian = "Dokumenty/obsidian"; # relative to $HOME/
projects = "~/Kodowanie";
documents = "~/Dokumenty";
pictures = "~/Obrazy";
downloads = "~/Pobrane";
video = "~/Video";
};
isNixOS = true;

View File

@@ -1,4 +1,4 @@
{ userConfig, ... }:
{ userConfig, lib, ... }:
{
programs.yazi = {
@@ -73,28 +73,5 @@
run = "cd ${userConfig.pathConfig.projects}";
}
];
theme.icon.prepend_dirs = [
{
name = userConfig.pathConfig.downloads;
text = "󰉍";
}
{
name = userConfig.pathConfig.documents;
text = "";
}
{
name = userConfig.pathConfig.video;
text = "󰕧";
}
{
name = userConfig.pathConfig.pictures;
text = "󰋩";
}
{
name = userConfig.pathConfig.projects;
text = "";
}
];
};
}

View File

@@ -52,12 +52,12 @@ in
enable = true;
createDirectories = true;
desktop = null;
documents = userConfig.pathConfig.documents;
download = userConfig.pathConfig.downloads;
documents = baseNameOf userConfig.pathConfig.documents;
download = baseNameOf userConfig.pathConfig.downloads;
music = null;
pictures = userConfig.pathConfig.pictures;
videos = userConfig.pathConfig.video;
projects = userConfig.pathConfig.projects;
pictures = baseNameOf userConfig.pathConfig.pictures;
videos = baseNameOf userConfig.pathConfig.video;
projects = baseNameOf userConfig.pathConfig.projects;
templates = null;
publicShare = null;
setSessionVariables = true;