Rocky Linuxロゴの追加

このコミットが含まれているのは:
守矢諏訪子 2024-07-12 01:07:31 +09:00
コミット 96999a25d5
3個のファイルの変更36行の追加0行の削除

ファイルの表示

@ -6,6 +6,7 @@
* Linuxロゴの修正(今も元気ハツラツ太郎さん)
* Fedoraロゴの追加
* 他のディストリビューションのロゴの表示オプションの追加(LinuxとIllumosのみ)
* Rocky Linuxロゴの追加
# 0.1.1
* ストレージ情報の修正(今も元気ハツラツ太郎さん)

ファイルの表示

@ -88,6 +88,10 @@ void get_distro() {
else if (strstr(buf, "Alpine") != NULL) distroname = "alpine";
else if (strstr(buf, "Manjaro") != NULL) distroname = "manjaro";
else if (strstr(buf, "Gentoo") != NULL) distroname = "gentoo";
else if (strstr(buf, "Fedora") != NULL) distroname = "fedora";
else if (strstr(buf, "Rocky") != NULL) distroname = "rocky";
else if (strstr(buf, "CentOS") != NULL) distroname = "centos";
else if (strstr(buf, "Red Hat") != NULL) distroname = "redhat";
else if (strstr(buf, "postmarketOS") != NULL) distroname = "postmarketos";
else if (strstr(buf, "Linux Mint") != NULL) distroname = "linuxmint";
else if (strstr(buf, "opensuse") != NULL) distroname = "opensuse";

ファイルの表示

@ -448,6 +448,37 @@ void getDistro(const char *distroname) {
for (int i = 9; i < minsize; i++) {
LOGO_SMALL[i] = GREEN " " RESET;
}
} else if (strncmp((char *)logoname, "rocky", strlen("rocky")) == 0) {
color = GREEN;
titlecolor = GREEN;
logosize = 17;
LOGO[0] = GREEN " .-/+oossssoo+/-. " RESET;
LOGO[1] = GREEN " `:+ssssssssssssssssss+:` " RESET;
LOGO[2] = GREEN " -+ssssssssssssssssssyyssss+- " RESET;
LOGO[3] = GREEN " .osssssssssssssssssssssssssssso. " RESET;
LOGO[4] = GREEN " /ssssssssssssssssssssssssssssssss/ " RESET;
LOGO[5] = GREEN " +ssssssssssssssssssssssssssssssssss+ " RESET;
LOGO[6] = GREEN " /ssssssssssssssssssssssssssssssssssss/ " RESET;
LOGO[7] = GREEN ".ssssssssssssssssssssssssssssssssssssss. " RESET;
LOGO[8] = GREEN "+ssssssssssssssssssssssssssssssssssssss+ " RESET;
LOGO[9] = GREEN ".sssssssssssssssssssss sssssssssssssss. " RESET;
LOGO[10] = GREEN " /sssssssssssssssss ssss sssssssssss/ " RESET;
LOGO[11] = GREEN " +ssssssssssssss ssssssss ssssssss+ " RESET;
LOGO[12] = GREEN " /sssssssssss sssssssssssss ssss/ " RESET;
LOGO[13] = GREEN " .osssssss sssssssssssssssss o. " RESET;
LOGO[14] = GREEN " -+sss sssssssssssssssssss+- " RESET;
LOGO[15] = GREEN " ` ssssssssssssssssss+:` " RESET;
LOGO[16] = GREEN " .-/+oossssoo+/-. " RESET;
LOGO_SMALL[0] = GREEN " _____ " RESET;
LOGO_SMALL[1] = GREEN " / \\ " RESET;
LOGO_SMALL[2] = GREEN " | /\\ | " RESET;
LOGO_SMALL[3] = GREEN " | / \\| " RESET;
LOGO_SMALL[4] = GREEN " \\/____/ " RESET;
for (int i = 5; i < minsize; i++) {
LOGO_SMALL[i] = GREEN " " RESET;
}
} else if (strncmp((char *)logoname, "ubuntu", strlen("ubuntu")) == 0) {
color = RED;
titlecolor = RED;