fixed fastfetch
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user