Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

added MainsailOS support and ascii art #2407

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
47 changes: 42 additions & 5 deletions neofetch
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ image_source="auto"
# gNewSense, GNOME, GNU, GoboLinux, Grombyang, Guix, Haiku, Huayra, HydroOS
# Hyperbola, iglunix, janus, Kali, KaOS, KDE_neon, Kibojoe, Kogaion, Korora,
# KSLinux, Kubuntu, LEDE, LaxerOS, LibreELEC, LFS, Linux_Lite, LMDE,
# Lubuntu, Lunar, macos, Mageia, MagpieOS, Mandriva, Manjaro, TeArch, Maui,
# Lubuntu, Lunar, macos, Mageia, MagpieOS, MainsailOS, Mandriva, Manjaro, TeArch, Maui,
# Mer, Minix, LinuxMint, Live_Raizo, MX_Linux, Namib, Neptune, NetBSD,
# Netrunner, Nitrux, NixOS, Nurunner, NuTyX, OBRevenge, OpenBSD,
# openEuler, OpenIndiana, openmamba, OpenMandriva, OpenStage, OpenWrt,
Expand All @@ -816,7 +816,7 @@ image_source="auto"
# NOTE: Arcolinux, Dragonfly, Fedora, Alpine, Arch, Ubuntu,
# CRUX, Debian, Gentoo, FreeBSD, Mac, NixOS, OpenBSD, android,
# Artix, CentOS, Cleanjaro, ElementaryOS, GUIX, Hyperbola,
# Manjaro, MXLinux, NetBSD, Parabola, POP_OS, PureOS,
# MainsailOS, Manjaro, MXLinux, NetBSD, Parabola, POP_OS, PureOS,
# Slackware, SunOS, LinuxLite, OpenSUSE, Raspbian,
# postmarketOS, and Void have a smaller logo variant.
# Use '{distro name}_small' to use the small variants.
Expand Down Expand Up @@ -3752,7 +3752,7 @@ get_disk() {

# Append '(disk mount point)' to the subtitle.
if [[ "$subtitle" ]]; then
prin "$subtitle${disk_sub:+ ($disk_sub)}" "$disk"
prin "$subtitle" "${disk_sub:+ ${bold}($disk_sub)${reset}} $disk"
else
prin "$disk_sub" "$disk"
fi
Expand Down Expand Up @@ -4882,7 +4882,7 @@ dynamic_prompt() {
# If the ascii art is taller than the info.
((lines=lines>info_height?lines-info_height+1:1))

printf -v nlines "%${lines}s"
printf -v nlines "%${lines}s"\
printf "%b" "${nlines// /\\n}"
}

Expand Down Expand Up @@ -5181,7 +5181,7 @@ ASCII:
NOTE: Arcolinux, Dragonfly, Fedora, Alpine, Arch, Ubuntu,
CRUX, Debian, Gentoo, FreeBSD, Mac, NixOS, OpenBSD, android,
Artix, CentOS, Cleanjaro, ElementaryOS, GUIX, Hyperbola,
Manjaro, MXLinux, NetBSD, Parabola, POP_OS, PureOS,
MainsailOS, Manjaro, MXLinux, NetBSD, Parabola, POP_OS, PureOS,
Slackware, SunOS, LinuxLite, OpenSUSE, Raspbian,
postmarketOS, and Void have a smaller logo variant.

Expand Down Expand Up @@ -8515,6 +8515,43 @@ o00. k0O${c2}dddddd${c1}occ
EOF
;;

"MainsailOS_small"*)
set_colors 1
read -rd '' ascii_data <<'EOF'
${c1} -:
+%*
.#%%+
-%%%: +=
+%%#..#%%-
.#%%+ -%%%- +=
-%%%- +%%#..#%%+
EOF
;;

"MainsailOS"*)
set_colors 1
read -rd '' ascii_data <<'EOF'
${c1} -
*%:
:%%%#
=%%%%%-
*%%%%%%#
:#%%%%%%%#.
-%%%%%%%%+
*%%%%%%%%- :
.#%%%%%%%#. *%=
-%%%%%%%%+ :#%%%*
+%%%%%%%%- =%%%%%%#.
.#%%%%%%%#. *%%%%%%%%:
-%%%%%%%%* :#%%%%%%%#.
+%%%%%%%%- =%%%%%%%%+ :%*.
.#%%%%%%%#: *%%%%%%%%- +%%%%*:
:%%%%%%%%* :#%%%%%%%#. .*%%%%%%%*
+%%%%%%%%= -%%%%%%%%+ :%%%%%%%%*
.#%%%%%%%%: *%%%%%%%%- =%%%%%%%%=
EOF
;;

"Mandriva"* | "Mandrake"*)
set_colors 4 3
read -rd '' ascii_data <<'EOF'
Expand Down