From 052e53d4e7bd6f624750f7584c449024f5bf9704 Mon Sep 17 00:00:00 2001 From: Dylan Date: Sun, 28 Feb 2016 13:07:10 +1100 Subject: [PATCH 1/3] Add small ascii logos for Arch, Crux and Gentoo --- ascii/distro/arch_small | 8 ++++++++ ascii/distro/crux_small | 9 +++++++++ ascii/distro/gentoo_small | 9 +++++++++ config/config | 6 ++++++ neofetch | 12 ++++++++++++ 5 files changed, 44 insertions(+) create mode 100644 ascii/distro/arch_small create mode 100644 ascii/distro/crux_small create mode 100644 ascii/distro/gentoo_small diff --git a/ascii/distro/arch_small b/ascii/distro/arch_small new file mode 100644 index 00000000..aa5e0749 --- /dev/null +++ b/ascii/distro/arch_small @@ -0,0 +1,8 @@ +''${c1}' /\\ + /^^\\ + /\\ \\ + /'${c2}' __ \\ + / ( ) \\ + / __| |__\\\\\ +/// \\\\\\\\\ +' diff --git a/ascii/distro/crux_small b/ascii/distro/crux_small new file mode 100644 index 00000000..0e135c32 --- /dev/null +++ b/ascii/distro/crux_small @@ -0,0 +1,9 @@ +"\ +${c1} ___${rc} +${c1} (${rc}${c3}.·${rc} ${c1}| +${c1} (${rc}${c2}<>${rc} ${c1}| +${c1} /${rc} ${c3}__${rc} ${c1}\\ +${c1} (${rc} ${c3}/ \\${rc} ${c1}/| +${c2}_${c1}/\\${rc} ${c3}__)${rc}${c1}/${rc}${c2}_${rc}${c1}) +${c2}\/${c1}-____${rc}${c2}\/ +" diff --git a/ascii/distro/gentoo_small b/ascii/distro/gentoo_small new file mode 100644 index 00000000..00358d67 --- /dev/null +++ b/ascii/distro/gentoo_small @@ -0,0 +1,9 @@ +"\ +${c1} _-----_ +( \\ +\ 0 \\ +${c2} \ ) + / _/ +( _- +\____- +" diff --git a/config/config b/config/config index 61a853a5..71b2f723 100644 --- a/config/config +++ b/config/config @@ -290,6 +290,12 @@ ascii="distro" # --ascii_colors 2 4 5 6 ascii_colors=(distro) +# Logo size +# Arch, Crux and Gentoo have a smaller logo +# variant. Changing the value below to small +# will make neofetch use the small logo. +# --ascii_logo_size small, normal +ascii_logo_size="normal" # }}} diff --git a/neofetch b/neofetch index 05045cc6..dbe7b202 100755 --- a/neofetch +++ b/neofetch @@ -310,6 +310,13 @@ ascii="distro" # --ascii_colors 2 4 5 6 ascii_colors=(distro) +# Logo size +# Arch, Crux and Gentoo have a smaller logo +# variant. Changing the value below to 'small' +# will make neofetch use the small logo. +# --ascii_logo_size small, normal +ascii_logo_size="normal" + # }}} @@ -1629,6 +1636,9 @@ getascii () { ascii=${ascii_distro,,} fi + [ "$ascii_logo_size" == "small" ] && \ + ascii="${ascii/ *}_small" + if [ -f "/usr/share/neofetch/ascii/distro/${ascii/ *}" ]; then ascii="/usr/share/neofetch/ascii/distro/${ascii/ *}" @@ -2426,6 +2436,8 @@ while [ "$1" ]; do case "$2" in "--"* | "") ascii_distro="$distro" ;; esac ;; + --ascii_logo_size) ascii_logo_size="$2" ;; + # Screenshot --scrot | -s) scrot="on"; [ "$2" ] && scrot_path="$2" ;; --scrot_cmd) scrot_cmd="$2" ;; From 458b0f4fbf2155ef71348c948aa24069877b827a Mon Sep 17 00:00:00 2001 From: Dylan Date: Sun, 28 Feb 2016 13:18:49 +1100 Subject: [PATCH 2/3] Remove stray vars from crux ascii --- ascii/distro/crux_small | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ascii/distro/crux_small b/ascii/distro/crux_small index 0e135c32..2c38a910 100644 --- a/ascii/distro/crux_small +++ b/ascii/distro/crux_small @@ -1,9 +1,9 @@ "\ -${c1} ___${rc} -${c1} (${rc}${c3}.·${rc} ${c1}| -${c1} (${rc}${c2}<>${rc} ${c1}| -${c1} /${rc} ${c3}__${rc} ${c1}\\ -${c1} (${rc} ${c3}/ \\${rc} ${c1}/| -${c2}_${c1}/\\${rc} ${c3}__)${rc}${c1}/${rc}${c2}_${rc}${c1}) -${c2}\/${c1}-____${rc}${c2}\/ +${c1} ___ +${c1} (${c3}.· ${c1}| +${c1} (${c2}<> ${c1}| +${c1} / ${c3}__ ${c1}\\ +${c1} ( ${c3}/ \\ ${c1}/| +${c2}_${c1}/\\ ${c3}__)${c1}/${c2}_${c1}) +${c2}\/${c1}-____${c2}\/ " From ed340efe7277450e9b12df69982b667c78cfb515 Mon Sep 17 00:00:00 2001 From: Dylan Date: Sun, 28 Feb 2016 13:19:45 +1100 Subject: [PATCH 3/3] Add ufetch to thanks --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index a0654309..93f276dd 100644 --- a/README.md +++ b/README.md @@ -428,6 +428,7 @@ Thanks to: - [Screenfetch](https://github.com/KittyKatt/screenFetch): - I've used some snippets as a base for a few functions in this script. - I've used the ascii art from here. +- [ufetch](https://github.com/jschx/ufetch): Tiny ascii logos - [@metakirby5](https://github.com/metakirby5): Providing great feedback as well as ideas for the script. - [@jrgz](https://github.com/jrgz): Helping me test the Mac OS X version. - [@mclado](https://github.com/mclado): Helping me with Max OS X testing