From df2e0e54a13f3b989901b72b659d09b692b273ba Mon Sep 17 00:00:00 2001 From: DJ_Level_3 Date: Mon, 8 Mar 2021 11:49:12 -0700 Subject: [PATCH 1/2] Add Uwuntu to uwufetch.c in branch changes --- uwufetch.c | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/uwufetch.c b/uwufetch.c index 81cf27e..63396c5 100644 --- a/uwufetch.c +++ b/uwufetch.c @@ -18,6 +18,8 @@ #define MAGENTA "\x1b[0;35m" #define CYAN "\x1b[36m" #define WHITE "\x1b[37m" +#define PINK "\x1b[38;5;201m" +#define LPINK "\x1b[38;5;213m" struct rusage r_usage; struct utsname sys_var; @@ -159,8 +161,8 @@ void get_info() { // get all necessary info void list(char* arg) { // prints distribution list printf("%s -d \n" "Available distributions:\n" - "%s%sarch, artix, %sdebian, %sfedora, %sgentoo, %smanjaro, \"manjaro-arm\", android, %sopenbsd, %sfreebsd%s\n", - arg, BOLD, BLUE, RED, CYAN, MAGENTA, GREEN, YELLOW, RED, NORMAL); + "%s%sarch, artix, %sdebian, %subuntu, %sfedora, %sgentoo, %smanjaro, \"manjaro-arm\", android, %sopenbsd, %sfreebsd%s\n", + arg, BOLD, BLUE, RED, PINK, CYAN, MAGENTA, GREEN, YELLOW, RED, NORMAL); } void print_ascii() { // prints logo (as ascii art) of the given system. distributions listed alphabetically. @@ -186,12 +188,20 @@ void print_ascii() { // prints logo (as ascii art) of the given system. distribu " /.,'` `'.\\\n\n", BLUE); } else if (strcmp(version_name, "debian") == 0) { sprintf(version_name, "%s", "Debinyan"); - printf( "\033[1E\033[6C%s______\n" + printf( "\033[1E\033[6C%s______\n" " / ___ \\\n" " | / OwO |\n" " | \\____-\n" " -_\n" " --_\n\n\n", RED); + } else if (strcmp(version_name, "ubuntu") == 0) { + sprintf(version_name, "%s", "Uwuntu"); + printf( "\033[1E\033[2C%s|\\ %s_ _ _O%s/|\n" + " %s/ \\\n" + " O| > w < |\n" + " | |\n" + " \\ _ _ _ /\n" + " %sC_/ %sO\n\n\n", PINK, LPINK, PINK, LPINK, PINK, LPINK); } else if (strcmp(version_name, "fedora") == 0) { sprintf(version_name, "%s", "Fedowoa"); printf( "\033[1E\033[8C%s_____\n" @@ -269,6 +279,7 @@ void print_image() { // prints logo (as an image) of the given system. distribut if (strcmp(version_name, "arch") == 0) sprintf(version_name, "%s", "Nyarch Linuwu"); else if (strcmp(version_name, "artix") == 0) sprintf(version_name, "%s", "Nyartix Linuwu"); else if (strcmp(version_name, "debian") == 0) sprintf(version_name, "%s", "Debinyan"); + else if (strcmp(version_name, "ubuntu") == 0) sprintf(version_name, "%s", "Uwuntu"); else if (strcmp(version_name, "fedora") == 0) sprintf(version_name, "%s", "Fedowa"); else if (strcmp(version_name, "gentoo") == 0) sprintf(version_name, "%s", "GentOwO"); else if (strcmp(version_name, "manjaro") == 0) sprintf(version_name, "%s", "Myanjawo"); From bffc2df2c6e145169d64c0a04d879f71b2a7d87a Mon Sep 17 00:00:00 2001 From: DJ_Level_3 Date: Mon, 8 Mar 2021 11:54:07 -0700 Subject: [PATCH 2/2] Alphabetize the ASCII logos and other bits --- uwufetch.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/uwufetch.c b/uwufetch.c index 63396c5..0d5998d 100644 --- a/uwufetch.c +++ b/uwufetch.c @@ -194,14 +194,6 @@ void print_ascii() { // prints logo (as ascii art) of the given system. distribu " | \\____-\n" " -_\n" " --_\n\n\n", RED); - } else if (strcmp(version_name, "ubuntu") == 0) { - sprintf(version_name, "%s", "Uwuntu"); - printf( "\033[1E\033[2C%s|\\ %s_ _ _O%s/|\n" - " %s/ \\\n" - " O| > w < |\n" - " | |\n" - " \\ _ _ _ /\n" - " %sC_/ %sO\n\n\n", PINK, LPINK, PINK, LPINK, PINK, LPINK); } else if (strcmp(version_name, "fedora") == 0) { sprintf(version_name, "%s", "Fedowoa"); printf( "\033[1E\033[8C%s_____\n" @@ -241,6 +233,14 @@ void print_ascii() { // prints logo (as ascii art) of the given system. distribu " \e[0;42m \e[0m \e[0;42m \e[0m \e[0;42m \e[0m\n" " \e[0;42m \e[0m \e[0;42m \e[0m \e[0;42m \e[0m\n" " \e[0;42m \e[0m \e[0;42m \e[0m \e[0;42m \e[0m\n"); + } else if (strcmp(version_name, "ubuntu") == 0) { + sprintf(version_name, "%s", "Uwuntu"); + printf( "\033[1E\033[2C%s|\\ %s_ _ _O%s/|\n" + " %s/ \\\n" + " O| > w < |\n" + " | |\n" + " \\ _ _ _ /\n" + " %sC_/ %sO\n\n\n", PINK, LPINK, PINK, LPINK, PINK, LPINK); } else if (strcmp(version_name, "android") == 0) { // android at the end because it could be not considered as an actual distribution of gnu/linux sprintf(version_name, "%s", "Nyandroid"); printf( "\n\n\nascii icon\n nedds to be\n added\n\n\n\n\n"); @@ -279,11 +279,11 @@ void print_image() { // prints logo (as an image) of the given system. distribut if (strcmp(version_name, "arch") == 0) sprintf(version_name, "%s", "Nyarch Linuwu"); else if (strcmp(version_name, "artix") == 0) sprintf(version_name, "%s", "Nyartix Linuwu"); else if (strcmp(version_name, "debian") == 0) sprintf(version_name, "%s", "Debinyan"); - else if (strcmp(version_name, "ubuntu") == 0) sprintf(version_name, "%s", "Uwuntu"); else if (strcmp(version_name, "fedora") == 0) sprintf(version_name, "%s", "Fedowa"); else if (strcmp(version_name, "gentoo") == 0) sprintf(version_name, "%s", "GentOwO"); else if (strcmp(version_name, "manjaro") == 0) sprintf(version_name, "%s", "Myanjawo"); else if (strcmp(version_name, "\"manjaro-arm\"") == 0) sprintf(version_name, "%s", "Myanjawo AWM"); + else if (strcmp(version_name, "ubuntu") == 0) sprintf(version_name, "%s", "Uwuntu"); else if (strcmp(version_name, "android") == 0) sprintf(version_name, "%s", "Nyandroid"); // android at the end because it could be not considered as an actual distribution of gnu/linux // BSD