From c20c442667f35daa685da2f8deef72644914eaae Mon Sep 17 00:00:00 2001 From: 0xrsydn Date: Wed, 29 Oct 2025 13:37:43 +0700 Subject: [PATCH] fix(fastfetch): adjust template --- modules/home/rsydn/programs/fastfetch.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/home/rsydn/programs/fastfetch.nix b/modules/home/rsydn/programs/fastfetch.nix index 34f4742..291fda4 100644 --- a/modules/home/rsydn/programs/fastfetch.nix +++ b/modules/home/rsydn/programs/fastfetch.nix @@ -6,7 +6,9 @@ # Copy the custom logo file xdg.configFile."fastfetch/oguri-logo.txt".source = ./fastfetch/oguri-logo.txt; - xdg.configFile."fastfetch/config.jsonc".text = builtins.toJSON { + xdg.configFile."fastfetch/config.jsonc".text = let + esc = builtins.fromJSON "\"\\u001b\""; + in builtins.toJSON { "$schema" = "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json"; @@ -33,7 +35,7 @@ { type = "custom"; format = - "\\u001b[32m── Hardware──────────────────────────────────────────\\u001b[0m"; + "${esc}[32m── Hardware──────────────────────────────────────────${esc}[0m"; } { type = "host"; @@ -78,7 +80,7 @@ { type = "custom"; format = - "\\u001b[34m── Software──────────────────────────────────────────\\u001b[0m"; + "${esc}[34m── Software──────────────────────────────────────────${esc}[0m"; } { type = "command"; @@ -133,7 +135,7 @@ { type = "custom"; format = - "\\u001b[35m── Uptime / Age─────────────────────────────────────\\u001b[0m"; + "${esc}[35m── Uptime / Age─────────────────────────────────────${esc}[0m"; } { type = "command";