From af6d483b8b836637a82b1835e1da8fc2af715f60 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Tue, 20 Feb 2024 19:48:41 +0000 Subject: [PATCH] Add accentColour to btm config Change specific colours to use colour name instead of hex representation --- home/bottom/default.nix | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/home/bottom/default.nix b/home/bottom/default.nix index 0bb149b7..69f54bcc 100644 --- a/home/bottom/default.nix +++ b/home/bottom/default.nix @@ -1,31 +1,36 @@ -{config, ...}: { +{ + config, + accentColour, + ... +}: { programs.bottom = { enable = true; - settings.colors = with config.lib.stylix.colors.withHashtag; let + settings.colors = with config.lib.stylix; + with colors.withHashtag; let rainbow = [red yellow green cyan blue magenta]; in { table_header_color = base05; all_cpu_color = base05; avg_cpu_color = base05; cpu_core_colors = rainbow; - ram_color = base08; - cache_color = base0B; - swap_color = base0D; - rx_color = base0B; - tx_color = base08; - widget_title_color = base0C; + ram_color = red; + cache_color = green; + swap_color = blue; + rx_color = green; + tx_color = blue; + widget_title_color = colors.withHashtag.${accentColour}; border_color = base02; - highlighted_border_color = base0E; + highlighted_border_color = colors.withHashtag.${accentColour}; text_color = base05; graph_color = base04; cursor_color = base02; selected_text_color = base05; selected_bg_color = base01; - high_battery_color = base0B; - medium_battery_color = base0A; - low_battery_color = base08; + high_battery_color = green; + medium_battery_color = yellow; + low_battery_color = red; gpu_core_colors = rainbow; - arc_color = base0C; + arc_color = cyan; }; }; }