feat: overhaul fastfetch configuration

This commit is contained in:
Youwen Wu 2024-11-29 00:46:06 -08:00
parent c167c740a8
commit 8c18d3ba2c
6 changed files with 38 additions and 33 deletions

View file

@ -34,7 +34,7 @@
../../users/youwen/linux/programs ../../users/youwen/linux/programs
../../users/youwen/common ../../users/youwen/common
../../users/youwen/linux/spicetify ../../users/youwen/linux/spicetify
../../users/youwen/common/fastfetch (import ../../users/youwen/common/fastfetch { })
] ]
++ (with inputs; [ ++ (with inputs; [
nix-index-database.hmModules.nix-index nix-index-database.hmModules.nix-index

View file

@ -30,7 +30,7 @@
../../users/youwen/common ../../users/youwen/common
../../users/youwen/linux/laptop ../../users/youwen/linux/laptop
../../users/youwen/linux/packages/aarch-64 ../../users/youwen/linux/packages/aarch-64
../../users/youwen/common/fastfetch (import ../../users/youwen/common/fastfetch { })
./home-manager-extras ./home-manager-extras
] ]
++ (with inputs; [ ++ (with inputs; [

View file

@ -24,7 +24,7 @@
../../users/youwen/common ../../users/youwen/common
../../users/youwen/linux/theming ../../users/youwen/linux/theming
../../users/youwen/linux/home.nix ../../users/youwen/linux/home.nix
../../users/youwen/common/fastfetch (import ../../users/youwen/common/fastfetch { kitty = false; })
] ]
++ (with inputs; [ ++ (with inputs; [
nix-index-database.hmModules.nix-index nix-index-database.hmModules.nix-index

View file

@ -31,7 +31,7 @@
../../users/youwen/linux/laptop ../../users/youwen/linux/laptop
../../users/youwen/linux/packages/x86_64 ../../users/youwen/linux/packages/x86_64
../../users/youwen/linux/programs ../../users/youwen/linux/programs
../../users/youwen/common/fastfetch (import ../../users/youwen/common/fastfetch { })
../../users/youwen/common ../../users/youwen/common
../../users/youwen/linux/spicetify ../../users/youwen/linux/spicetify
./home-manager-extras ./home-manager-extras

View file

@ -1,10 +1,3 @@
// _____ _____ _____ _____ _____ _____ _____ _____ _____
// | __| _ | __|_ _| __| __|_ _| | | |
// | __| |__ | | | | __| __| | | | --| |
// |__| |__|__|_____| |_| |__| |_____| |_| |_____|__|__| HYPRLAND
//
// by Bina
{ {
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json", "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
"logo": { "logo": {
@ -12,11 +5,11 @@
"type": "kitty", "type": "kitty",
"height": 18, "height": 18,
"padding": { "padding": {
"top": 2, "top": 2
}, }
}, },
"display": { "display": {
"separator": " ", "separator": " "
}, },
"modules": [ "modules": [
"break", "break",
@ -26,71 +19,71 @@
"break", "break",
{ {
"type": "title", "type": "title",
"keyWidth": 10, "keyWidth": 10
}, },
"break", "break",
{ {
"type": "os", "type": "os",
"key": " ", "key": " ",
"keyColor": "34", // = color4 "keyColor": "34",
"format": "{3} on {12}", "format": "{3} on {12}"
}, },
{ {
"type": "kernel", "type": "kernel",
"key": " ", "key": " ",
"keyColor": "34", "keyColor": "34"
}, },
{ {
"type": "packages", "type": "packages",
"key": " ", "key": " ",
"keyColor": "34", "keyColor": "34"
}, },
{ {
"type": "shell", "type": "shell",
"key": " ", "key": " ",
"keyColor": "34", "keyColor": "34"
}, },
{ {
"type": "terminal", "type": "terminal",
"key": " ", "key": " ",
"keyColor": "34", "keyColor": "34"
}, },
{ {
"type": "wm", "type": "wm",
"key": " ", "key": " ",
"keyColor": "34", "keyColor": "34"
}, },
{ {
"type": "CPU", "type": "CPU",
"key": " ", "key": " ",
"keyColor": "34", "keyColor": "34"
}, },
{ {
"type": "GPU", "type": "GPU",
"key": "󰍹 ", "key": "󰍹 ",
"keyColor": "34", "keyColor": "34"
}, },
{ {
"type": "uptime", "type": "uptime",
"key": " ", "key": " ",
"keyColor": "34", "keyColor": "34"
}, },
{ {
"type": "media", "type": "media",
"key": "󰝚 ", "key": "󰝚 ",
"keyColor": "34", "keyColor": "34"
}, },
{ {
"type": "player", "type": "player",
"key": " ", "key": " ",
"keyColor": "34", "keyColor": "34"
}, },
"break", "break",
{ {
"type": "custom", "type": "custom",
"format": "\u001b[90m \u001b[31m \u001b[32m \u001b[33m \u001b[34m \u001b[35m \u001b[36m \u001b[37m ", "format": "\u001b[90m \u001b[31m \u001b[32m \u001b[33m \u001b[34m \u001b[35m \u001b[36m \u001b[37m "
}, },
"break", "break",
"break", "break"
], ]
} }

View file

@ -1,8 +1,20 @@
{ pkgs, ... }:
{ {
home.file.".config/fastfetch/config.jsonc".source = ./config.jsonc; kitty ? true,
home.file.".local/share/fastfetch/images/nixos-logo.png".source = ./nixos-logo.png; }:
{ config, ... }:
let
fastfetchConfig = builtins.fromJSON (builtins.readFile ./config.json);
in
{
# home.file.".config/fastfetch/config.jsonc".source = ./config.jsonc;
programs.fastfetch = { programs.fastfetch = {
enable = true; enable = true;
settings = (
fastfetchConfig
// {
logo.type = if kitty == "cassini" then "auto" else "kitty";
logo.source = ./nixos-logo.png;
}
);
}; };
} }