fixed fastfetch
This commit is contained in:
@@ -8,15 +8,19 @@
|
|||||||
let
|
let
|
||||||
# Map hostnames to their image files
|
# Map hostnames to their image files
|
||||||
hostImages = {
|
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-01" = "${configPath}/assets/pfp/eva-01.jpg";
|
||||||
"eva-02" = "${configPath}/assets/pfp/eva-02.png";
|
"eva-02" = "${configPath}/assets/pfp/eva-02.png";
|
||||||
"eva-03" = "${configPath}/assets/pfp/eva-03.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
|
# Get the image path for the current host, or null if not found
|
||||||
hostImage = hostImages.${hostname} or null;
|
hostImage = hostImages.${hostname} or null;
|
||||||
|
|
||||||
|
# Detect if terminal is Kitty
|
||||||
|
isKitty = builtins.getEnv "TERM" == "xterm-kitty" || builtins.getEnv "TERMINAL" == "kitty";
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
@@ -26,7 +30,7 @@ in
|
|||||||
settings = {
|
settings = {
|
||||||
logo = lib.mkIf (hostImage != null) {
|
logo = lib.mkIf (hostImage != null) {
|
||||||
source = hostImage;
|
source = hostImage;
|
||||||
type = "kitty";
|
type = if isKitty then "kitty" else "chafa";
|
||||||
height = 20;
|
height = 20;
|
||||||
width = 60;
|
width = 60;
|
||||||
padding = {
|
padding = {
|
||||||
@@ -135,6 +139,11 @@ in
|
|||||||
key = " ├ battery";
|
key = " ├ battery";
|
||||||
keyColor = "33";
|
keyColor = "33";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
type = "uptime";
|
||||||
|
key = " ├ uptime";
|
||||||
|
keyColor = "33";
|
||||||
|
}
|
||||||
{
|
{
|
||||||
type = "localip";
|
type = "localip";
|
||||||
key = " └ local ip";
|
key = " └ local ip";
|
||||||
|
|||||||
Reference in New Issue
Block a user