From 0fd00fc8cc7337ec3ed72d84d28a233393d2d8c1 Mon Sep 17 00:00:00 2001 From: rogueking Date: Mon, 9 Feb 2026 14:26:33 -0800 Subject: [PATCH] fixed fastfetch --- home-manager/commands/fastfetch/fastfetch.nix | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/home-manager/commands/fastfetch/fastfetch.nix b/home-manager/commands/fastfetch/fastfetch.nix index 5e2f62d..6de712e 100644 --- a/home-manager/commands/fastfetch/fastfetch.nix +++ b/home-manager/commands/fastfetch/fastfetch.nix @@ -8,15 +8,19 @@ let # Map hostnames to their image files hostImages = { + "acheron" = "${configPath}/assets/pfp/nerv-color.png"; + "buildbox" = "${configPath}/assets/pfp/nerv-color.png"; + "ender-ml" = "${configPath}/assets/pfp/nerv-color.png"; "eva-01" = "${configPath}/assets/pfp/eva-01.jpg"; "eva-02" = "${configPath}/assets/pfp/eva-02.png"; "eva-03" = "${configPath}/assets/pfp/eva-03.png"; - "buildbox" = "${configPath}/assets/pfp/neon-nerv.png"; - "acheron" = "${configPath}/assets/pfp/neon-nerv.png"; }; # Get the image path for the current host, or null if not found hostImage = hostImages.${hostname} or null; + + # Detect if terminal is Kitty + isKitty = builtins.getEnv "TERM" == "xterm-kitty" || builtins.getEnv "TERMINAL" == "kitty"; in { @@ -26,7 +30,7 @@ in settings = { logo = lib.mkIf (hostImage != null) { source = hostImage; - type = "kitty"; + type = if isKitty then "kitty" else "chafa"; height = 20; width = 60; padding = { @@ -135,6 +139,11 @@ in key = " ├ 󰂀 battery"; keyColor = "33"; } + { + type = "uptime"; + key = " ├ 󰔟 uptime"; + keyColor = "33"; + } { type = "localip"; key = " └ 󰩟 local ip";