diff options
Diffstat (limited to '')
-rw-r--r-- | modules/terminal/alacritty.nix | 57 |
1 files changed, 39 insertions, 18 deletions
diff --git a/modules/terminal/alacritty.nix b/modules/terminal/alacritty.nix index 7dd4456..7addff0 100644 --- a/modules/terminal/alacritty.nix +++ b/modules/terminal/alacritty.nix @@ -48,25 +48,46 @@ in { }; # Colors - colors = - (lib.attrsets.mapAttrs ( - group: colors: - lib.attrsets.mapAttrs (name: color: "#${color}") colors - ) {inherit (config.theme.colors) bright normal;}) - // { - cursor = { - background = "CellForeground"; - text = "CellBackground"; - }; - selection = { - background = "CellForeground"; - text = "CellBackground"; - }; - primary = { - foreground = "#${config.theme.colors.fg}"; - background = "#${config.theme.colors.bg}"; - }; + colors = { + normal = lib.attrsets.mapAttrs (name: color: "${color}") { + inherit (config.theme.colors.normal) + black + red + green + yellow + blue + magenta + cyan + white; }; + + bright = lib.attrsets.mapAttrs (name: color: "${color}") { + inherit (config.theme.colors.bright) + black + red + green + yellow + blue + magenta + cyan + white; + }; + + cursor = { + background = "CellForeground"; + text = "CellBackground"; + }; + + selection = { + background = "CellForeground"; + text = "CellBackground"; + }; + + primary = { + foreground = "#${config.theme.colors.text}"; + background = "#${config.theme.colors.base}"; + }; + }; }; }; }; |