From 48d511befb97f31b1d2114a0a364caea9ce989d2 Mon Sep 17 00:00:00 2001 From: surtur Date: Fri, 8 Sep 2023 14:57:19 +0200 Subject: [PATCH] bat: switch to Catppuccin --- .config/bat/config | 2 +- nix/modules/xdg.nix | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/.config/bat/config b/.config/bat/config index 8e8a158..57376fa 100644 --- a/.config/bat/config +++ b/.config/bat/config @@ -1,3 +1,3 @@ ---theme=Dracula +--theme=Catppuccin-mocha --style="numbers,changes,header" --italic-text=always diff --git a/nix/modules/xdg.nix b/nix/modules/xdg.nix index 21cc925..7195be2 100644 --- a/nix/modules/xdg.nix +++ b/nix/modules/xdg.nix @@ -12,6 +12,13 @@ rev = "4820b3ef3f4968cf3084b2239ce7d1e99ea04dda"; sha256 = "sha256-uZSx+fuzcW//5/FtW98q7G4xRRjJjD5aQMbvJ4cs94U="; }; + bat = pkgs.fetchFromGitea { + domain = "gitea.catppuccin.com"; + owner = "catppuccin"; + repo = "bat"; + rev = "ba4d16880d63e656acced2b7d4e034e4a93f74b1"; + sha256 = "sha256-6WVKQErGdaqb++oaXnY3i6/GuH2FhTgK0v4TN4Y0Wbw="; + }; btop = pkgs.fetchFromGitea { domain = "gitea.catppuccin.com"; owner = "catppuccin"; @@ -82,6 +89,27 @@ in { + "/themes/mocha.conf"; }; + configFile."bat/themes/Catppuccin-latte.tmTheme" = { + source = + catppuccin.bat + + "/Catppuccin-latte.tmTheme"; + }; + configFile."bat/themes/Catppuccin-frappe.tmTheme" = { + source = + catppuccin.bat + + "/Catppuccin-frappe.tmTheme"; + }; + configFile."bat/themes/Catppuccin-macchiato.tmTheme" = { + source = + catppuccin.bat + + "/Catppuccin-macchiato.tmTheme"; + }; + configFile."bat/themes/Catppuccin-mocha.tmTheme" = { + source = + catppuccin.bat + + "/Catppuccin-mocha.tmTheme"; + }; + configFile."btop/themes/catppuccin_mocha.theme" = { source = catppuccin.btop