Skip to content

Instantly share code, notes, and snippets.

@Corfucinas
Last active May 7, 2021 05:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Corfucinas/2e3f1620805166a7c41600bcecb6726a to your computer and use it in GitHub Desktop.
Save Corfucinas/2e3f1620805166a7c41600bcecb6726a to your computer and use it in GitHub Desktop.
random ascii background for neofetch
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
# Available distros until version 7.0.0
distro_list=("AIX" "Alpine" "Anarchy" "Android" "Antergos" "antiX" "AOSC"
"Apricity" "ArcoLinux" "ArchBox" "ARCHlabs" "ArchStrike"
"XFerience" "ArchMerge" "Arch" "Artix" "Arya" "Bedrock" "Bitrig"
"BlackArch" "BLAG" "BlankOn" "BlueLight" "bonsai" "BSD"
"BunsenLabs" "Calculate" "Carbs" "CentOS" "Chakra" "ChaletOS"
"Chapeau" "Chrom*" "Cleanjaro" "ClearOS" "Clear_Linux" "Clover"
"Condres" "Container_Linux" "CRUX" "Cucumber" "Debian" "Deepin"
"DesaOS" "Devuan" "DracOS" "DragonFly" "Drauger" "Elementary"
"EndeavourOS" "Endless" "EuroLinux" "Exherbo" "Fedora" "Feren" "FreeBSD"
"FreeMiNT" "Frugalware" "Funtoo" "GalliumOS" "Gentoo" "Pentoo"
"gNewSense" "GNU" "GoboLinux" "Grombyang" "Guix" "Haiku" "Huayra"
"Hyperbola" "janus" "Kali" "KaOS" "KDE_neon" "Kibojoe" "Kogaion"
"Korora" "KSLinux" "Kubuntu" "LEDE" "LFS" "Linux_Lite"
"LMDE" "Lubuntu" "Lunar" "macos" "Mageia" "MagpieOS" "Mandriva"
"Manjaro" "Maui" "Mer" "Minix" "LinuxMint" "MX_Linux" "Namib"
"Neptune" "NetBSD" "Netrunner" "Nitrux" "NixOS" "Nurunner"
"NuTyX" "OBRevenge" "OpenBSD" "OpenIndiana" "OpenMandriva"
"OpenWrt" "osmc" "Oracle" "PacBSD" "Parabola" "Pardus" "Parrot"
"Parsix" "TrueOS" "PCLinuxOS" "Peppermint" "popos" "Porteus"
"PostMarketOS" "Proxmox" "Puppy" "PureOS" "Qubes" "Radix" "Raspbian"
"Reborn_OS" "Redstar" "Redcore" "Redhat" "Refracted_Devuan" "Regata"
"Rosa" "sabotage" "Sabayon" "Sailfish" "SalentOS" "Scientific" "Septor"
"SharkLinux" "Siduction" "Slackware" "SliTaz" "SmartOS" "Solus"
"Source_Mage" "Sparky" "Star" "SteamOS" "SunOS" "openSUSE_Leap"
"openSUSE_Tumbleweed" "openSUSE" "SwagArch" "Tails" "Trisquel"
"Ubuntu-Budgie" "Ubuntu-GNOME" "Ubuntu-MATE" "Ubuntu-Studio" "Ubuntu"
"Void" "Obarun" "windows10" "Windows7" "Xubuntu" "Zorin" "IRIX")
select_from_distro_list() {
# Select a random linux distribution
select_a_distribution="${distro_list[RANDOM % ${#distro_list[@]}]}"
# Write to the Shell
echo "$select_a_distribution"
}
select_from_distro_list
@Corfucinas
Copy link
Author

Keep this file within your ~/.config/neofetch folder and mark it as an executable.

Replace ascii_distro="auto" (the default)
with ascii_distro=""$($HOME/.config/neofetch/neofetch_random_background.sh)")" or the path you have saved your file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment