Merge branch 'main' into 'main'

fastfetch: convert config to nix

See merge request Zaney/zaneyos!52
This commit is contained in:
Tyler Kelley 2024-07-30 17:19:23 +00:00
commit 0166e21d71
4 changed files with 113 additions and 109 deletions

View File

@ -1,104 +0,0 @@
{
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
"logo": {
"source": "~/.config/fastfetch/nixos.png",
"type": "kitty-direct",
"height": 15,
"width": 30,
"padding": {
"top": 3,
"left": 3
}
},
"modules": [
"break",
{
"type": "custom",
"format": "\u001b[90m┌──────────────────────Hardware──────────────────────┐"
},
{
"type": "cpu",
"key": "│ ",
"keyColor": "35"
},
{
"type": "gpu",
"key": "│ 󰍛",
"keyColor": "35"
},
{
"type": "memory",
"key": "│ 󰑭",
"keyColor": "35"
},
{
"type": "custom",
"format": "\u001b[90m└────────────────────────────────────────────────────┘"
},
"break",
{
"type": "custom",
"format": "\u001b[90m┌──────────────────────Software──────────────────────┐"
},
{
"type": "custom",
"format": "\u001b[31m OS -> ZaneyOS 2.2"
},
{
"type": "kernel",
"key": "│ ├",
"keyColor": "31"
},
{
"type": "packages",
"key": "│ ├󰏖",
"keyColor": "31"
},
{
"type": "shell",
"key": "└ └",
"keyColor": "31"
},
"break",
{
"type": "wm",
"key": " WM",
"keyColor": "32"
},
{
"type": "wmtheme",
"key": "│ ├󰉼",
"keyColor": "32"
},
{
"type": "terminal",
"key": "└ └",
"keyColor": "32"
},
{
"type": "custom",
"format": "\u001b[90m└────────────────────────────────────────────────────┘"
},
"break",
{
"type": "custom",
"format": "\u001b[90m┌────────────────────Uptime / Age────────────────────┐"
},
{
"type": "command",
"key": "│ ",
"keyColor": "33",
"text": "birth_install=$(stat -c %W /); current=$(date +%s); time_progression=$((current - birth_install)); days_difference=$((time_progression / 86400)); echo $days_difference days"
},
{
"type": "uptime",
"key": "│ ",
"keyColor": "33"
},
{
"type": "custom",
"format": "\u001b[90m└────────────────────────────────────────────────────┘"
},
"break"
]
}

View File

@ -0,0 +1,113 @@
{
programs.fastfetch = {
enable = true;
settings = {
display = {
color = {
keys = "35";
output = "90";
};
};
logo = {
source = ./nixos.png;
type = "kitty-direct";
height = 15;
width = 30;
padding = {
top = 3;
left = 3;
};
};
modules = [
"break"
{
type = "custom";
format = "Hardware";
}
{
type = "cpu";
key = " ";
}
{
type = "gpu";
key = " 󰍛 ";
}
{
type = "memory";
key = " 󰑭 ";
}
{
type = "custom";
format = "";
}
"break"
{
type = "custom";
format = "Software";
}
{
type = "custom";
format = " OS -> ZaneyOS 2.2";
}
{
type = "kernel";
key = " ";
}
{
type = "packages";
key = " 󰏖 ";
}
{
type = "shell";
key = " ";
}
"break"
{
type = "wm";
key = " WM";
}
{
type = "wmtheme";
key = " 󰉼 ";
}
{
type = "terminal";
key = " ";
}
{
type = "custom";
format = "";
}
"break"
{
type = "custom";
format = "Uptime / Age";
}
{
type = "command";
key = " ";
text = #bash
''
birth_install=$(stat -c %W /)
current=$(date +%s)
delta=$((current - birth_install))
delta_days=$((delta / 86400))
echo $delta_days days
'';
}
{
type = "uptime";
key = " ";
}
{
type = "custom";
format = "";
}
"break"
];
};
};
}

View File

@ -244,7 +244,6 @@ in
git
cmatrix
lolcat
fastfetch
htop
brave
libvirt

View File

@ -31,10 +31,6 @@ in
source = ../../config/wallpapers;
recursive = true;
};
home.file.".config/fastfetch" = {
source = ../../config/fastfetch;
recursive = true;
};
home.file.".config/wlogout/icons" = {
source = ../../config/wlogout;
recursive = true;