Update fastfetch.nix
This commit is contained in:
parent
888debf9a6
commit
ef11592f81
1 changed files with 9 additions and 11 deletions
|
|
@ -14,17 +14,15 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
# Create a wrapper script that chooses a random logo
|
# Create a wrapper script that chooses a random logo
|
||||||
environment.etc."fastfetch/random-logo.sh".text = ''
|
environment.etc."fastfetch/random-logo.sh" = {
|
||||||
|
text = ''
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
logos=("RavynOS" "PuffOS" "PearOS" "locos" "GNOME" "eweOS" "DarkOS" "BredOS" "AmogOS")
|
logos=("RavynOS" "PuffOS" "PearOS" "locos" "GNOME" "eweOS" "DarkOS" "BredOS" "AmogOS")
|
||||||
random_logo=''${logos[$RANDOM % ''${#logos[@]}]}
|
random_logo=''${logos[$RANDOM % ''${#logos[@]}]}
|
||||||
${pkgs.fastfetch}/bin/fastfetch --config /etc/fastfetch/config.jsonc --logo $random_logo
|
${pkgs.fastfetch}/bin/fastfetch --config /etc/fastfetch/config.jsonc --logo $random_logo
|
||||||
'';
|
'';
|
||||||
|
mode = "0755";
|
||||||
# Make the script executable
|
};
|
||||||
system.activationScripts.fastfetchScript = ''
|
|
||||||
chmod +x /etc/fastfetch/random-logo.sh
|
|
||||||
'';
|
|
||||||
|
|
||||||
# Create the fastfetch config file with unicode icons
|
# Create the fastfetch config file with unicode icons
|
||||||
environment.etc."fastfetch/config.jsonc".text = ''
|
environment.etc."fastfetch/config.jsonc".text = ''
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue