From c17d7a5a9dd615316cf0c195c176f6499f640e10 Mon Sep 17 00:00:00 2001 From: PK Date: Fri, 19 Mar 2021 16:52:51 -0500 Subject: [PATCH 1/3] OpenSUSE icon tweak, Zypper support + APT readded --- uwufetch.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/uwufetch.c b/uwufetch.c index a3064c0..c92604d 100644 --- a/uwufetch.c +++ b/uwufetch.c @@ -99,6 +99,7 @@ int pkgman() { // this is just a function that returns the total of installed pa }; struct package_manager pkgmans[] = { + { "apt list --installed 2> /dev/null | wc -l", "(apt)" }, { "apk info 2> /dev/null | wc -l", "(apk)" }, { "dnf list installed 2> /dev/null | wc -l", "(dnf)" }, { "qlist -I 2> /dev/null | wc -l", "(emerge)" }, @@ -108,6 +109,7 @@ int pkgman() { // this is just a function that returns the total of installed pa { "pacman -Qq 2> /dev/null | wc -l", "(pacman)" }, { "rpm -qa --last 2> /dev/null | wc -l", "(rpm)" }, { "xbps-query -l 2> /dev/null | wc -l", "(xbps)" } + { "zypper se --installed-only 2> /dev/null | wc -l", "(zypper)" } }; const unsigned long pkgman_count = sizeof(pkgmans) / sizeof(pkgmans[0]); @@ -335,13 +337,10 @@ void print_ascii() { // prints logo (as ascii art) of the given system. distribu " %s | %s| %s---- %s|\n" " %s --%s'--------'\n\n",GREEN, WHITE, GREEN, WHITE, GREEN, WHITE, GREEN, WHITE, GREEN, WHITE, GREEN, WHITE, GREEN, WHITE, GREEN, WHITE, GREEN); } else if (strcmp(version_name, "\"opensuse-leap\"") == 0) { - printf("\033[2E\033[6C%s_______\n" - " ___| %s__%s \\\n" - " / %s/ o\\%s|\n" - " %s\\__/%s|\n" - " ______/\n" - " \\_______\n" - " \\_________/\n\n", GREEN, NORMAL, GREEN, NORMAL, GREEN, NORMAL, GREEN); + printf("\033[3E\033[3C%s|\\----/|\n" + " _ / %sO O%s\\\n" + " __. W /\n" + " '----'\n\n\n", GREEN, WHITE, GREEN); } else if (strcmp(version_name, "pop") == 0) { printf("\033[2E\033[6C%s|\\.-----./|\n" " |/ \\|\n" From b56336e1cc5efabc0fd47a7cdb460cae07b951b4 Mon Sep 17 00:00:00 2001 From: PK Date: Fri, 19 Mar 2021 16:54:35 -0500 Subject: [PATCH 2/3] README change --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 51d12ee..4b5b977 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,11 @@ A meme system info tool for (almost) all your Linux/Unix-based systems, based on nyan/UwU trend on r/linuxmasterrace. ## Currently supported distros +#### Full support (Both Ascii art + images are provided for the given distribution) +Nyalpine, Nyarch Linuwu, Nyartix Linuwu, Debinyan, Fedowa, GentOwO, Miwint, Myanjawo, OwOpenSUSE, Pop OwOs, RaspNyan, UwUntu, and OwOid; Plus Nyandroid. -Nyalpine, Nyarch Linuwu, Nyartix Linuwu, Debinyan, Fedowa, GentOwO, Miwint, Myanjawo, Pop OwOs, RaspNyan, UwUntu, and OwOid; Plus Nyandroid; FweeBSD, and OwOpenBSD. +#### Partial support (Either no Ascii art, or no image is provided) +endeavOwO, KDE NeOwOn, nixOwOs, Swackwawe, sOwOlus; Plus FweeBSD, and OwOpenBSD ## Building and installation From a0bedd1dbf789e792dbb1116cf9000e2506bb8c5 Mon Sep 17 00:00:00 2001 From: "P.K" Date: Fri, 19 Mar 2021 17:01:52 -0500 Subject: [PATCH 3/3] Quick fix --- uwufetch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uwufetch.c b/uwufetch.c index c92604d..0a4bafc 100644 --- a/uwufetch.c +++ b/uwufetch.c @@ -108,7 +108,7 @@ int pkgman() { // this is just a function that returns the total of installed pa { "nix-store -q --requisites /run/current-sys_vartem/sw 2> /dev/null | wc -l", "(nix)" }, { "pacman -Qq 2> /dev/null | wc -l", "(pacman)" }, { "rpm -qa --last 2> /dev/null | wc -l", "(rpm)" }, - { "xbps-query -l 2> /dev/null | wc -l", "(xbps)" } + { "xbps-query -l 2> /dev/null | wc -l", "(xbps)" }, { "zypper se --installed-only 2> /dev/null | wc -l", "(zypper)" } };