From 538fb93bded6a19aaa01a940e4a1234a14a81bae Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Sun, 10 Mar 2024 07:19:49 +0000 Subject: [PATCH] alacritty: switch from stylix colours to catpuccin provided config --- home/alacritty/catppuccin-mocha.toml | 75 ++++++++++++++++++++++++++++ home/alacritty/default.nix | 41 +++++++++------ 2 files changed, 101 insertions(+), 15 deletions(-) create mode 100644 home/alacritty/catppuccin-mocha.toml diff --git a/home/alacritty/catppuccin-mocha.toml b/home/alacritty/catppuccin-mocha.toml new file mode 100644 index 00000000..1dfe8570 --- /dev/null +++ b/home/alacritty/catppuccin-mocha.toml @@ -0,0 +1,75 @@ +[colors.primary] +background = "#1E1E2E" +foreground = "#CDD6F4" +dim_foreground = "#CDD6F4" +bright_foreground = "#CDD6F4" + +[colors.cursor] +text = "#1E1E2E" +cursor = "#F5E0DC" + +[colors.vi_mode_cursor] +text = "#1E1E2E" +cursor = "#B4BEFE" + +[colors.search.matches] +foreground = "#1E1E2E" +background = "#A6ADC8" + +[colors.search.focused_match] +foreground = "#1E1E2E" +background = "#A6E3A1" + +[colors.footer_bar] +foreground = "#1E1E2E" +background = "#A6ADC8" + +[colors.hints.start] +foreground = "#1E1E2E" +background = "#F9E2AF" + +[colors.hints.end] +foreground = "#1E1E2E" +background = "#A6ADC8" + +[colors.selection] +text = "#1E1E2E" +background = "#F5E0DC" + +[colors.normal] +black = "#45475A" +red = "#F38BA8" +green = "#A6E3A1" +yellow = "#F9E2AF" +blue = "#89B4FA" +magenta = "#F5C2E7" +cyan = "#94E2D5" +white = "#BAC2DE" + +[colors.bright] +black = "#585B70" +red = "#F38BA8" +green = "#A6E3A1" +yellow = "#F9E2AF" +blue = "#89B4FA" +magenta = "#F5C2E7" +cyan = "#94E2D5" +white = "#A6ADC8" + +[colors.dim] +black = "#45475A" +red = "#F38BA8" +green = "#A6E3A1" +yellow = "#F9E2AF" +blue = "#89B4FA" +magenta = "#F5C2E7" +cyan = "#94E2D5" +white = "#BAC2DE" + +[[colors.indexed_colors]] +index = 16 +color = "#FAB387" + +[[colors.indexed_colors]] +index = 17 +color = "#F5E0DC" diff --git a/home/alacritty/default.nix b/home/alacritty/default.nix index cb47cc0a..1ebcf6ee 100644 --- a/home/alacritty/default.nix +++ b/home/alacritty/default.nix @@ -1,19 +1,30 @@ -{...}: { - stylix.targets.alacritty.enable = true; - programs.alacritty = { +{config, ...}: { + programs.alacritty = let + catppuccin-mocha = builtins.fromTOML (builtins.readFile ./catppuccin-mocha.toml); + in { enable = true; - settings = { - window = { - dynamic_title = true; - padding = { - x = 10; - y = 10; + settings = with config.stylix; + { + font = { + size = fonts.sizes.applications; + normal = { + family = fonts.monospace.name; + style = "Regular"; + }; }; - decorations = "none"; - }; - selection.save_to_clipboard = true; - live_config_reload = true; - mouse.hide_when_typing = true; - }; + window = { + opacity = opacity.terminal; + dynamic_title = true; + padding = { + x = 10; + y = 10; + }; + decorations = "none"; + }; + live_config_reload = false; + selection.save_to_clipboard = true; + mouse.hide_when_typing = true; + } + // catppuccin-mocha; }; }