From dd0e2f0e9cc8538e8bbfc7e2ec0aa75fcbc8ede2 Mon Sep 17 00:00:00 2001 From: PK Date: Sun, 7 Mar 2021 15:57:59 -0600 Subject: [PATCH 1/3] Added OpenBSD and FreeBSD (Beta) --- uwufetch.c | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/uwufetch.c b/uwufetch.c index 261d4e3..fcddd55 100644 --- a/uwufetch.c +++ b/uwufetch.c @@ -14,9 +14,10 @@ #define GREEN "\x1b[32m" #define YELLOW "\x1b[33m" #define BLUE "\x1b[34m" -#define MAGENTA "\x1b[35m" +#define MAGENTA "\x1b[0;35m" #define CYAN "\x1b[36m" #define WHITE "\x1b[37m" +#define PINK "\x1b[1;35m" struct rusage r_usage; struct utsname sys_var; @@ -132,6 +133,9 @@ void get_info() { // get all necessary info } void print_ascii() { // prints logo (as ascii art) of the given system. distributions listed alphabetically. + + // linux + if (strcmp(version_name, "arch") == 0) { sprintf(version_name, "%s", "Nyarch Linuwu"); printf( "\033[1E\033[8C%s/\\\n" @@ -198,7 +202,31 @@ 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"); } + + // BSD + + else if (strcmp(version_name, "openbsd") == 0) { + sprintf(version_name, "%s", "OwOpenBSD"); + printf( "\033[1E\033[3C%s ______ \n" + " \\- -/ %s\u2665 \n" + "%s\\_/ \\ \n" + "| %s> < %s| \n" + "|_ < %s// %sW %s// \n" + "%s/ \\ / \n" + " /-________-\\ \n\n", YELLOW, RED, YELLOW, WHITE, YELLOW, PINK, WHITE, PINK, YELLOW); + + } else if (strcmp(version_name, "freebsd") == 0) { + sprintf(version_name, "%s", "FweeBSD"); + printf( "\033[1E\033[3C%s\n" + " /\\,-'''''-,/\\\n" + " \\_) (_/\n" + " | \\ / |\n" + " | O w O |\n" + " ; ;\n" + " '-_____-'\n", RED); + } } + void print_image() { // prints logo (as an image) of the given system. distributions listed alphabetically. char command[256]; sprintf(command, "viu -t -w 18 -h 8 /usr/lib/uwufetch/%s.png", version_name); From 1e5cfefe9b66cb8c6e280a0038bad34ed8c89983 Mon Sep 17 00:00:00 2001 From: PK Date: Sun, 7 Mar 2021 16:03:10 -0600 Subject: [PATCH 2/3] OpenBSD and FreeBSD (Beta) support --- uwufetch.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/uwufetch.c b/uwufetch.c index bb6528e..2b37add 100644 --- a/uwufetch.c +++ b/uwufetch.c @@ -18,7 +18,6 @@ #define MAGENTA "\x1b[0;35m" #define CYAN "\x1b[36m" #define WHITE "\x1b[37m" -#define PINK "\x1b[1;35m" struct rusage r_usage; struct utsname sys_var; @@ -237,7 +236,7 @@ void print_ascii() { // prints logo (as ascii art) of the given system. distribu "| %s> < %s| \n" "|_ < %s// %sW %s// \n" "%s/ \\ / \n" - " /-________-\\ \n\n", YELLOW, RED, YELLOW, WHITE, YELLOW, PINK, WHITE, PINK, YELLOW); + " /-________-\\ \n\n", YELLOW, RED, YELLOW, WHITE, YELLOW, MAGENTA, WHITE, MAGENTA, YELLOW); } else if (strcmp(version_name, "freebsd") == 0) { sprintf(version_name, "%s", "FweeBSD"); From 8083e44037ee4a909431f7d679a22bfa37ae8bc9 Mon Sep 17 00:00:00 2001 From: "P.K" Date: Sun, 7 Mar 2021 16:14:00 -0600 Subject: [PATCH 3/3] Last minute edit change blush color on OpenBSD mascots cheek to red --- uwufetch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uwufetch.c b/uwufetch.c index 2b37add..d3e14ec 100644 --- a/uwufetch.c +++ b/uwufetch.c @@ -236,7 +236,7 @@ void print_ascii() { // prints logo (as ascii art) of the given system. distribu "| %s> < %s| \n" "|_ < %s// %sW %s// \n" "%s/ \\ / \n" - " /-________-\\ \n\n", YELLOW, RED, YELLOW, WHITE, YELLOW, MAGENTA, WHITE, MAGENTA, YELLOW); + " /-________-\\ \n\n", YELLOW, RED, YELLOW, WHITE, YELLOW, RED, WHITE, RED, YELLOW); } else if (strcmp(version_name, "freebsd") == 0) { sprintf(version_name, "%s", "FweeBSD");