Yazi : Enable status bar & style that bitch.

This commit is contained in:
Dmitry Voronin 2024-08-10 01:23:09 +03:00
parent ae4a88b443
commit 8e6b33fd95
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
2 changed files with 54 additions and 5 deletions

View file

@ -1,10 +1,10 @@
{ util, pkgs, ... }: { { util, pkgs, ... }: {
file = pkgs.writeText "YaziInitConfig" (util.trimTabs '' file = pkgs.writeText "YaziInitConfig" (util.trimTabs ''
-- Hide Status Bar. -- Hide Status Bar.
function Status:render() return {} end -- function Status:render() return {} end
local old_manager_render = Manager.render -- local old_manager_render = Manager.render
function Manager:render(area) -- function Manager:render(area)
return old_manager_render(self, ui.Rect { x = area.x, y = area.y, w = area.w, h = area.h + 1 }) -- return old_manager_render(self, ui.Rect { x = area.x, y = area.y, w = area.w, h = area.h + 1 })
end -- end
''); '');
} }

View file

@ -29,5 +29,54 @@ in {
input = { border = borderLight; }; input = { border = borderLight; };
completion = { border = borderLight; }; completion = { border = borderLight; };
tasks = { border = borderLight; }; tasks = { border = borderLight; };
status = {
separator_open = "";
separator_close = "";
# NOTE: Inversed because yazi dev is fckin weird. Also add manpages ffs.
separator_style = {
bg = "#${config.style.color.fg.light}";
fg = "#${config.style.color.bg.regular}";
};
mode_normal = {
fg = "#${config.style.color.fg.light}";
bg = "#${config.style.color.bg.regular}";
};
mode_select = {
fg = "#${config.style.color.fg.light}";
bg = "#${config.style.color.selection}";
};
mode_unset = {
fg = "#${config.style.color.fg.light}";
bg = "#${config.style.color.neutral}";
};
progress_label = {
fg = "#${config.style.color.fg.light}";
bg = "#${config.style.color.bg.regular}";
};
progress_normal = {
fg = "#${config.style.color.fg.light}";
bg = "#${config.style.color.bg.regular}";
};
progress_error = {
fg = "#${config.style.color.fg.light}";
bg = "#${config.style.color.negative}";
};
permissions_t = {
fg = "#${config.style.color.fg.light}";
};
permissions_r = {
fg = "#${config.style.color.fg.light}";
};
permissions_w = {
fg = "#${config.style.color.fg.light}";
};
permissions_x = {
fg = "#${config.style.color.fg.light}";
};
permissions_s = {
fg = "#${config.style.color.fg.light}";
};
};
}; };
} }