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 statusBar = "ashell"; # available: ashell | waybar
pathConfig = { pathConfig = {
wallpaper = "Obrazy/tapety/catppuccin"; wallpaper = "Obrazy/tapety/catppuccin"; # relative to $HOME/
screenshot = "Obrazy/zrzuty/"; screenshot = "Obrazy/zrzuty/"; # relative to $HOME/
obsidian = "Dokumenty/obsidian"; obsidian = "Dokumenty/obsidian"; # relative to $HOME/
projects = "Kodowanie"; projects = "~/Kodowanie";
documents = "Dokumenty"; documents = "~/Dokumenty";
pictures = "Obrazy"; pictures = "~/Obrazy";
downloads = "Pobrane"; downloads = "~/Pobrane";
video = "Video"; video = "~/Video";
}; };
isNixOS = true; isNixOS = true;

View File

@@ -1,4 +1,4 @@
{ userConfig, ... }: { userConfig, lib, ... }:
{ {
programs.yazi = { programs.yazi = {
@@ -73,28 +73,5 @@
run = "cd ${userConfig.pathConfig.projects}"; 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; enable = true;
createDirectories = true; createDirectories = true;
desktop = null; desktop = null;
documents = userConfig.pathConfig.documents; documents = baseNameOf userConfig.pathConfig.documents;
download = userConfig.pathConfig.downloads; download = baseNameOf userConfig.pathConfig.downloads;
music = null; music = null;
pictures = userConfig.pathConfig.pictures; pictures = baseNameOf userConfig.pathConfig.pictures;
videos = userConfig.pathConfig.video; videos = baseNameOf userConfig.pathConfig.video;
projects = userConfig.pathConfig.projects; projects = baseNameOf userConfig.pathConfig.projects;
templates = null; templates = null;
publicShare = null; publicShare = null;
setSessionVariables = true; setSessionVariables = true;