diff --git a/config/ascii-neofetch b/config/ascii-neofetch deleted file mode 100644 index c8a6d75..0000000 --- a/config/ascii-neofetch +++ /dev/null @@ -1,11 +0,0 @@ -${c1} .--. - .-./ ___\ || - `-'\|. .| || - __\=/__ .-. - .' \:/ `. /\/| - / /( : )\ V /|| - \_\( : ) `-' || - (_(__:__) __||___ - \ | / / / - |__|__| ( ( - (___V___) \______\\ diff --git a/config/fastfetch/config.jsonc b/config/fastfetch/config.jsonc new file mode 100644 index 0000000..67d0df3 --- /dev/null +++ b/config/fastfetch/config.jsonc @@ -0,0 +1,111 @@ +{ + "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json", + "logo": { + "source": "~/.config/fastfetch/nixos.png", + "type": "auto", + "height": 15, + "width": 30, + "padding": { + "top": 5, + "left": 3 + } + }, + "modules": [ + "break", + { + "type": "custom", + "format": "\u001b[90m┌──────────────────────Hardware──────────────────────┐" + }, + { + "type": "host", + "key": " PC", + "keyColor": "34" + }, + { + "type": "cpu", + "key": "│ ├", + "keyColor": "34" + }, + { + "type": "gpu", + "key": "│ ├󰍛", + "keyColor": "34" + }, + { + "type": "memory", + "key": "└ └󰑭", + "keyColor": "34" + }, + { + "type": "custom", + "format": "\u001b[90m└────────────────────────────────────────────────────┘" + }, + "break", + { + "type": "custom", + "format": "\u001b[90m┌──────────────────────Software──────────────────────┐" + }, + { + "type": "os", + "key": " OS", + "format": "ZaneyOS 2.2" + "keyColor": "31" + }, + { + "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": " OS Age ", + "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": " Uptime ", + "keyColor": "33" + }, + { + "type": "custom", + "format": "\u001b[90m└────────────────────────────────────────────────────┘" + }, + "break" + ] +} diff --git a/config/fastfetch/nixos.png b/config/fastfetch/nixos.png new file mode 100644 index 0000000..571410a Binary files /dev/null and b/config/fastfetch/nixos.png differ diff --git a/hosts/default/config.nix b/hosts/default/config.nix index 109ccb3..ba81b5a 100644 --- a/hosts/default/config.nix +++ b/hosts/default/config.nix @@ -240,7 +240,7 @@ git cmatrix lolcat - neofetch + fastfetch htop libvirt lxqt.lxqt-policykit diff --git a/hosts/default/home.nix b/hosts/default/home.nix index 9706f40..75639df 100644 --- a/hosts/default/home.nix +++ b/hosts/default/home.nix @@ -31,34 +31,16 @@ 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; }; - home.file.".config/ascii-neofetch".source = ../../config/ascii-neofetch; home.file.".face.icon".source = ../../config/face.jpg; home.file.".config/face.jpg".source = ../../config/face.jpg; - home.file.".config/neofetch/config.conf".text = '' - print_info() { - prin "$(color 6) ZaneyOS $ZANEYOS_VERSION" - info underline - info "$(color 7) VER" kernel - info "$(color 2) UP " uptime - info "$(color 4) PKG" packages - info "$(color 6) DE " de - info "$(color 5) TER" term - info "$(color 3) CPU" cpu - info "$(color 7) GPU" gpu - info "$(color 5) MEM" memory - prin " " - prin "$(color 1) $(color 2) $(color 3) $(color 4) $(color 5) $(color 6) $(color 7) $(color 8)" - } - distro_shorthand="on" - memory_unit="gib" - cpu_temp="C" - separator=" $(color 4)>" - stdout="off" - ''; home.file.".config/swappy/config".text = '' [Default] save_dir=/home/${username}/Pictures/Screenshots @@ -189,7 +171,7 @@ in #fi ''; initExtra = '' - neofetch + fastfetch if [ -f $HOME/.bashrc-personal ]; then source $HOME/.bashrc-personal fi @@ -206,7 +188,6 @@ in la = "lsd -a"; lal = "lsd -al"; ".." = "cd .."; - neofetch = "neofetch --ascii ~/.config/ascii-neofetch"; }; }; home-manager.enable = true;