From 4293ee539d72e4163311676f95fcfc5530f6841c Mon Sep 17 00:00:00 2001 From: zoe Date: Thu, 23 Mar 2023 14:42:38 +0100 Subject: [PATCH] change helix theme --- helix/settings.nix | 2 +- home.nix | 35 +++++++++++++++++++++++++++++++---- 2 files changed, 32 insertions(+), 5 deletions(-) diff --git a/helix/settings.nix b/helix/settings.nix index 564e9fe..d9585d9 100644 --- a/helix/settings.nix +++ b/helix/settings.nix @@ -5,7 +5,7 @@ in package = pkgs.helix; enable = true; settings = { - theme = "base16_terminal"; + theme = "catppuccin_frappe"; editor = { auto-completion = true; auto-format = true; }; }; } diff --git a/home.nix b/home.nix index 708e288..0743d1c 100644 --- a/home.nix +++ b/home.nix @@ -84,11 +84,38 @@ in package = pkgs.catppuccin-gtk; }; }; - programs.starship = { + programs.starship = + let + flavour = "frappe"; # One of `latte`, `frappe`, `macchiato`, or `mocha` + in + { + enable = true; + enableFishIntegration = true; + settings = { + # Other config here + format = "$all"; # Remove this line to disable the default prompt format + palette = "catppuccin_${flavour}"; + } // builtins.fromTOML (builtins.readFile + (pkgs.fetchFromGitHub + { + owner = "catppuccin"; + repo = "starship"; + rev = "3e3e54410c3189053f4da7a7043261361a1ed1bc"; + sha256 = "soEBVlq3ULeiZFAdQYMRFuswIIhI9bclIU8WXjxd7oY="; + } + /palettes/${flavour}.toml)); + }; + programs.bat = { enable = true; - enableFishIntegration = true; - enableBashIntegration = true; + config.theme = "catppuccinFrappe"; + themes = { + catppuccinFrappe = builtins.readFile (pkgs.fetchFromGitHub + { + owner = "catppuccin"; + repo = "bat"; + rev = "ba4d16880d63e656acced2b7d4e034e4a93f74b1"; + sha256 = "6WVKQErGdaqb++oaXnY3i6/GuH2FhTgK0v4TN4Y0Wbw="; + } + "/Catppuccin-frappe.tmTheme"); + }; }; }; - }