From cb14ce235bf73dd2ee906d38475831e54991a6a1 Mon Sep 17 00:00:00 2001 From: PK Date: Sat, 6 Mar 2021 16:07:07 -0600 Subject: [PATCH 1/2] GentOwO support --- uwufetch.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/uwufetch.c b/uwufetch.c index d03bb4b..0b8b749 100644 --- a/uwufetch.c +++ b/uwufetch.c @@ -35,7 +35,7 @@ int main(int argc, char *argv[]) { //char c = getopt(argc, argv, "adhi"); // things for the future print_ascii(); //system("viu -t -w 18 -h 8 $HOME/.config/uwufetch/arch.png"); // other things for the future - print_info(); + print_info(); } int pkgman() { // this is just a function that returns the total of installed packages @@ -110,7 +110,7 @@ void get_info() { // get all necessary info pkgs = pkgman(); } -void print_ascii() { +void print_ascii() { // prints logo of the given system. distributions listed alphabetically. if (strcmp(version_name, "arch") == 0) { sprintf(version_name, "%s", "Nyarch Linuwu"); printf( "\033[3;9H%s/\\\n" @@ -147,6 +147,15 @@ void print_ascii() { " / / %s| |\n" " %s\\ \\%s__/ |\n" " %s\\%s(_____/\n", BLUE, CYAN, WHITE, BLUE, WHITE, CYAN, BLUE, CYAN, BLUE, CYAN, BLUE, CYAN, BLUE, CYAN, BLUE, CYAN, BLUE); + } else if (strcmp(version_name, "gentoo") == 0) { + sprintf(version_name, "%s", "GentOwO"); + printf( "\033[3;9H%s _-----_\n" + " ( \\n" + " \ OwO \\n" + "%s \ )\n" + " / _/\n" + " ( _-\n" + " \____-\n", MAGENTA, WHITE); } else if (strcmp(version_name, "manjaro") == 0) { sprintf(version_name, "%s", "Myanjaro"); printf( " \u25b3 \u25b3 \u25e0\u25e0\u25e0\u25e0\n" From 1cc394c728efc3f8fc17af27f2432defc17aff46 Mon Sep 17 00:00:00 2001 From: "P.K" Date: Sat, 6 Mar 2021 16:15:13 -0600 Subject: [PATCH 2/2] GentOwO fix --- uwufetch.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/uwufetch.c b/uwufetch.c index 0b8b749..933561f 100644 --- a/uwufetch.c +++ b/uwufetch.c @@ -151,11 +151,11 @@ void print_ascii() { // prints logo of the given system. distributions listed al sprintf(version_name, "%s", "GentOwO"); printf( "\033[3;9H%s _-----_\n" " ( \\n" - " \ OwO \\n" - "%s \ )\n" + " \\ OwO \\n" + "%s \\ )\n" " / _/\n" " ( _-\n" - " \____-\n", MAGENTA, WHITE); + " \\____-\n", MAGENTA, WHITE); } else if (strcmp(version_name, "manjaro") == 0) { sprintf(version_name, "%s", "Myanjaro"); printf( " \u25b3 \u25b3 \u25e0\u25e0\u25e0\u25e0\n" @@ -167,4 +167,4 @@ void print_ascii() { // prints logo of the given system. distributions listed al " \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"); } -} \ No newline at end of file +}