From 8e6b33fd958e1ea18e0b8d064a5c83b03659aa15 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Sat, 10 Aug 2024 01:23:09 +0300 Subject: [PATCH] Yazi : Enable status bar & style that bitch. --- home/config/yazi/module/Init.nix | 10 +++---- home/config/yazi/module/Theme.nix | 49 +++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+), 5 deletions(-) diff --git a/home/config/yazi/module/Init.nix b/home/config/yazi/module/Init.nix index 88d6eb69..196e0c01 100644 --- a/home/config/yazi/module/Init.nix +++ b/home/config/yazi/module/Init.nix @@ -1,10 +1,10 @@ { util, pkgs, ... }: { file = pkgs.writeText "YaziInitConfig" (util.trimTabs '' -- Hide Status Bar. - function Status:render() return {} end - local old_manager_render = Manager.render - function Manager:render(area) - return old_manager_render(self, ui.Rect { x = area.x, y = area.y, w = area.w, h = area.h + 1 }) - end + -- function Status:render() return {} end + -- local old_manager_render = Manager.render + -- function Manager:render(area) + -- return old_manager_render(self, ui.Rect { x = area.x, y = area.y, w = area.w, h = area.h + 1 }) + -- end ''); } diff --git a/home/config/yazi/module/Theme.nix b/home/config/yazi/module/Theme.nix index 2d02f42f..b3c6858e 100644 --- a/home/config/yazi/module/Theme.nix +++ b/home/config/yazi/module/Theme.nix @@ -29,5 +29,54 @@ in { input = { border = borderLight; }; completion = { 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}"; + }; + }; }; }