From 888debf9a670acba62905e143086542468961f53 Mon Sep 17 00:00:00 2001 From: ediblerope Date: Wed, 3 Dec 2025 21:22:01 +0000 Subject: [PATCH] Update fastfetch.nix --- apps/fastfetch.nix | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/apps/fastfetch.nix b/apps/fastfetch.nix index dbc0905..bb3a4a9 100644 --- a/apps/fastfetch.nix +++ b/apps/fastfetch.nix @@ -13,6 +13,19 @@ nerd-fonts.meslo-lg ]; + # Create a wrapper script that chooses a random logo + environment.etc."fastfetch/random-logo.sh".text = '' + #!/bin/sh + logos=("RavynOS" "PuffOS" "PearOS" "locos" "GNOME" "eweOS" "DarkOS" "BredOS" "AmogOS") + random_logo=''${logos[$RANDOM % ''${#logos[@]}]} + ${pkgs.fastfetch}/bin/fastfetch --config /etc/fastfetch/config.jsonc --logo $random_logo + ''; + + # Make the script executable + system.activationScripts.fastfetchScript = '' + chmod +x /etc/fastfetch/random-logo.sh + ''; + # Create the fastfetch config file with unicode icons environment.etc."fastfetch/config.jsonc".text = '' { @@ -141,9 +154,9 @@ ''; programs.bash.interactiveShellInit = '' - # Run fastfetch on terminal start + # Run fastfetch with random logo on terminal start if [[ $- == *i* ]]; then - ${pkgs.fastfetch}/bin/fastfetch --config /etc/fastfetch/config.jsonc + /etc/fastfetch/random-logo.sh fi ''; }