Merge pull request #111 from dylanaraps/small_logo

Add small ascii logo variants for Arch, Crux and Gentoo.
This commit is contained in:
Dylan Araps 2016-02-28 21:35:22 +11:00
commit 4641a929c6
6 changed files with 45 additions and 0 deletions

View file

@ -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"
# }}}
@ -1626,6 +1633,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/ *}"
@ -2425,6 +2435,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" ;;