New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
upload Ubuntu flavor ASCII logos #200
base: master
Are you sure you want to change the base?
Conversation
Hm. I'm not sure I'm a fan of having them in separate files, personally. I could, however, be persuaded to make a screenfetch-extras repo for such logos. |
You know, I could think of some other extra logos, like other distro flavors (PC-BSD, Knoppix, GhostBSD) or logos of desktop environments. |
Yeah, I could definitely be persuaded to make screenfetch-extras, to be honest. I'll do it this weekend and get these in there. |
Would it be practical to put all the ASCII art in a folder and have the script fetch them instead of hardcoding them into one file? The script itself is pretty long and that would make it shorter and more readable. |
This has been considered in the past and I'm not 100% committed to that because of the ease with with you can get screenfetch right now. It's just one file so all you have to do is wget and chmod and it's ready if you don't wanna use git. |
One thing you could do is to mark the start and end of the ASCII art part inside the script with unique commentary lines (something like PS: GhostBSD logo # logo was actually taken from BTX loader
if [[ "$no_color" != "1" ]]; then
c1=$(getColor 'light blue') # Light Blue
fi
if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi
startline="0"
fulloutput=(
" %s" # Name
"${c1} ,gggg,gg %s" # OS
"${c1} dP* *Y8I %s" # Kernel
"${c1} i8' ,8I %s" # Uptime
"${c1} ,d8, ,d8I %s" # Packages
"${c1} P*Y8888P*888 %s" # Shell
"${c1} ,d8I' %s" # Resolution
"${c1} ,dP'8I %s" # DE
"${c1} ,8* 8I %s" # WM
"${c1} I8 8I %s" # GTK Theme
"${c1} '8, ,8I %s" # Icon Theme
"${c1} 'Y8P* %s" # Font
" %s" # CPU
" %s" # GPU
" %s" # RAM
) |
Nice! I'll include that logo soon. And get on the screenfetch-extras repository. That's an interesting thought. Hmmmm. |
@glolol screenFetch is actually short and easy to overview compared to inxi, which has 473 kiB and doesn't even provide ASCII art (still 314 kiB after stripping comments and whitespaces). |
As for the idea to mark the start and end positions of the ASCII arts to make it easier to modify the script, this can be done by adding these lines to screenfetch and then use a script like this to split the script and merge it later together. With these marks you can also use a script to add extra arts to the script: https://github.com/darealshinji/screenFetch/blob/extra-logos/extra-logos/merge-extra-logos.sh edit:
This is what the modified part in the script will look like: asciiText () {
prefix="/usr/share/screenfetch-ascii-arts"
# Distro logos and ASCII outputs
if [[ "$fake_distro" ]]; then distro="${fake_distro}"; fi
if [[ "$asc_distro" ]]; then myascii="${asc_distro}"
elif [[ "$art" ]]; then myascii="custom"
else myascii="${distro}"; fi
case ${myascii} in
"custom") source "$art" ;;
"Android")
source "${prefix}/aa_Android" ;;
"Antergos")
source "${prefix}/aa_Antergos" ;;
"Arch Linux")
source "${prefix}/aa_Arch_Linux" ;;
"Arch Linux - Old")
source "${prefix}/aa_Arch_Linux_-_Old" ;;
"BackTrack Linux")
source "${prefix}/aa_BackTrack_Linux" ;;
"BLAG")
source "${prefix}/aa_BLAG" ;;
"CentOS")
source "${prefix}/aa_CentOS" ;;
"Chakra")
source "${prefix}/aa_Chakra" ;;
"Chapeau")
source "${prefix}/aa_Chapeau" ;;
"ChromeOS")
source "${prefix}/aa_ChromeOS" ;;
"CrunchBang")
source "${prefix}/aa_CrunchBang" ;;
"CRUX")
source "${prefix}/aa_CRUX" ;;
"Debian")
source "${prefix}/aa_Debian" ;;
"Deepin")
source "${prefix}/aa_Deepin" ;;
"DragonFlyBSD")
source "${prefix}/aa_DragonFlyBSD" ;;
"elementary OS"|"elementary os")
source "${prefix}/aa_elementary_OS" ;;
"Fedora")
source "${prefix}/aa_Fedora" ;;
"FreeBSD")
source "${prefix}/aa_FreeBSD" ;;
"FreeBSD - Old")
source "${prefix}/aa_FreeBSD_-_Old" ;;
"Frugalware")
source "${prefix}/aa_Frugalware" ;;
"Fuduntu")
source "${prefix}/aa_Fuduntu" ;;
"Funtoo")
source "${prefix}/aa_Funtoo" ;;
"Gentoo")
source "${prefix}/aa_Gentoo" ;;
"gNewSense")
source "${prefix}/aa_gNewSense" ;;
"Haiku")
source "${prefix}/aa_Haiku" ;;
"Jiyuu Linux")
source "${prefix}/aa_Jiyuu_Linux" ;;
"Kali Linux")
source "${prefix}/aa_Kali_Linux" ;;
"KaOS")
source "${prefix}/aa_KaOS" ;;
"Korora")
source "${prefix}/aa_Korora" ;;
"LinuxDeepin")
source "${prefix}/aa_LinuxDeepin" ;;
"LMDE")
source "${prefix}/aa_LMDE" ;;
"Logos")
source "${prefix}/aa_Logos" ;;
"Mac OS X")
source "${prefix}/aa_Mac_OS_X" ;;
"Mageia")
source "${prefix}/aa_Mageia" ;;
"Mandriva"|"Mandrake")
source "${prefix}/aa_Mandriva" ;;
"Manjaro")
source "${prefix}/aa_Manjaro" ;;
"Manjaro-tree")
source "${prefix}/aa_Manjaro-tree" ;;
"Mint")
source "${prefix}/aa_Mint" ;;
"NetBSD")
source "${prefix}/aa_NetBSD" ;;
"NixOS")
source "${prefix}/aa_NixOS" ;;
"OpenBSD")
source "${prefix}/aa_OpenBSD" ;;
"openSUSE")
source "${prefix}/aa_openSUSE" ;;
"Parabola GNU/Linux-libre")
source "${prefix}/aa_Parabola_GNU_Linux-libre" ;;
"Peppermint")
source "${prefix}/aa_Peppermint" ;;
"Raspbian")
source "${prefix}/aa_Raspbian" ;;
"Red Hat Enterprise Linux")
source "${prefix}/aa_Red_Hat_Enterprise_Linux" ;;
"Sabayon")
source "${prefix}/aa_Sabayon" ;;
"Scientific Linux")
source "${prefix}/aa_Scientific_Linux" ;;
"Slackware")
source "${prefix}/aa_Slackware" ;;
"SolusOS")
source "${prefix}/aa_SolusOS" ;;
"Trisquel")
source "${prefix}/aa_Trisquel" ;;
"Ubuntu")
source "${prefix}/aa_Ubuntu" ;;
"Viperr")
source "${prefix}/aa_Viperr" ;;
"Void")
source "${prefix}/aa_Void" ;;
"Windows"|"Cygwin")
source "${prefix}/aa_Windows" ;;
*)
if [[ "$no_color" != "1" ]]; then
c1=$(getColor 'white') # White
c2=$(getColor 'dark grey') # Light Gray
c3=$(getColor 'yellow') # Light Yellow
fi |
This thing also should delete not only parts of script that you don't need, but itself. |
its a matter of opinion, I suppose ... I have (still working on it from time to time) forked this and while keeping master of the fork close to this upstream master repo ... I have made another branch breaking various things down into separate files, with the idea of making things easier to manage ... instead of having one REALLY LONG file ... just say there is an issue with "gpu detection" ... you can go into the functions-type folder (where I broke things down), go right to the "gpu detection" file and look at that, vs all the scrolling with things in one file. btw ... sorry for being off topic ... just saying my 2cents ... |
Intended to be used with the
-a
command.