From 0b7c4ebcebb7fbfaa1955c8acab1651edfcea9e3 Mon Sep 17 00:00:00 2001 From: TheDarkBug Date: Mon, 18 Jan 2021 23:49:35 +0100 Subject: [PATCH] Added arch Linux logo. --- Makefile | 2 +- README.md | 6 ++---- main.c | 27 +++++++++++++++++++++++++-- test | Bin 0 -> 16600 bytes test.c | 18 ++++++++++++++++++ 5 files changed, 46 insertions(+), 7 deletions(-) create mode 100755 test create mode 100644 test.c diff --git a/Makefile b/Makefile index a75371a..63d1111 100644 --- a/Makefile +++ b/Makefile @@ -30,6 +30,6 @@ install: uninstall: @echo Uninstalling lightfetch... sudo rm -f $(install_dir)$(name) - rm ../lightfetch + rm -rf ../lightfetch @echo Uninstall completed! @exit \ No newline at end of file diff --git a/README.md b/README.md index db6a9e0..e325f04 100644 --- a/README.md +++ b/README.md @@ -16,13 +16,11 @@ cd lightfetch make install ``` -To uninstall: +To uninstall (this will also remove the repository folder): ```shell cd lightfetch -sudo make uninstall -cd .. -rm -rf lightfetch +make uninstall ``` ## License diff --git a/main.c b/main.c index 26bd0fa..a967377 100644 --- a/main.c +++ b/main.c @@ -3,6 +3,17 @@ #include #include #include +// COLORS +#define NORMAL "\x1b[0m" +#define BOLD "\x1b[1m" +#define BLACK "\x1b[30m" +#define RED "\x1b[31m" +#define GREEN "\x1b[32m" +#define YELLOW "\x1b[33m" +#define BLUE "\x1b[34m" +#define MAGENTA "\x1b[35m" +#define CYAN "\x1b[36m" +#define WHITE "\x1b[37m" void pkgman(); @@ -23,8 +34,20 @@ int main() { fscanf(fosr,"%[^\n]", version_name); fclose(fosr); memmove(&version_name[0], &version_name[5], 64); - printf("%s@%s %s %s\n", user, host, version_name, sys.machine); //debug - pkgman(); + + // Now we print the info and exit the program. + if (strcmp(version_name, "Arch Linux")) { + printf("%s %s@%s\n", BOLD, user, host); + printf("%s /\\ %s%sOS \n", BLUE, NORMAL, BOLD); + printf("%s / \\ %s%sKERNEL \n", BLUE, NORMAL, BOLD); + printf("%s /\\ \\ %s%s \n", BLUE, NORMAL, BOLD); + printf("%s / \\ %s%sOS \n", BLUE, NORMAL, BOLD); + printf("%s / __ \\ %s%sRAM \n", BLUE, NORMAL, BOLD); + printf("%s / __| |__-\\ %s%sSHELL \n", BLUE, NORMAL, BOLD); + printf("%s /_-'' ''-_\\ %s%sOS \n\n\n", BLUE, NORMAL, BOLD); + } + + return 0; } diff --git a/test b/test new file mode 100755 index 0000000000000000000000000000000000000000..3391b51595739fc8cf9078ebc9f8376819ee8b5d GIT binary patch literal 16600 zcmeHOZEPGz8J@d~V<)Z8j){rM2VO!_*`>Z*K5T3%lRJN|(ZvagU4+tPIp3XqSMDRa z+XFiw5!E5;sdXDsN}~#)@B=9l{3!fDDZdgqiUb0w;YSIo5T`7mXS_4t7>o>gJs!cyCq65%6lzpVhy<5`vB4I3dxL}p98Zi1{%(*z zCk}uN6C>(kI(Em5V?L>2X)PX7v|wbr&x0Md^TQ?%`*Esoy|}bc`x)tU#lCcEqU+GU zbi5;-$`+?Prn|d3x()>jxxfK=-dmv|*r$d^$3=Sg*M9ZgXisPRr5}BNB)@OlOEW*% zgzd&Qpg+{Xg!&wQGYV!jZyK3sDl4#z;p-B^k&(WB<3Qj*pi>wlV@Hg5BA=K_ z70g6_>_~q)mraaCC(`I+DwE5S4@0R|Rm5g_DYC2a^@w)hxgQj_r#7M1K{^M%Ke#^! zw5(E$mMy%s|F?vs zSkwaWIV;9Jx)E?A;6}iWfExif0&WD{2)GgW--*Dx4IjU!&;Geif3oJc`-ITHdCl~e zU)E=D)XmFAmOEbqy1e&wI5xC~Acy57%HCWkm&<6s|1Tq@Tc`EXYx?Z#OUK3{b2T?% z=&jGyAC=I13zW;vd9eH2MSZUKCCKP=H9tYQT%?)tkx-4Xx+U`8*-$m!y8@ z;|T35dTB|&{?=jr`m#^=+|+Nam|MZYUUE=ZUYKlX9ay!;_MPh;1hFU{9M@-iy_nTY zcg%YI$=(N`P;Oodz&t$$Cv&rAClH=f^OJ#w*7Mj5F+aJQ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co!@f+T+;DY5z2E7!#h?!AnLZLY_YoyQcq?Kw!1k$gYBHNa%1czU{CN zkpkl##|2}1cKd?Ep2y*gJU?cAjFmNAh5}Z>@fR8tFlq8ACKXhU96u(mK*nm%<9bH? z#%WE?`hN;StNmq7X*1ro8bjV$|25#SkMjJK$8)@I*Qw8C#$SRhj9M!8JfB$V01^`G zsnTkhd2Ao{9j>3}9lS4k0Z$GR_b;~N>-Yzdp$gmc{Ny$beA>|1lGvW{k07(!ix4RX z6>3yuU^~XQL14AlLP}F3dv2%Gp38S3gTA=^Jl+bDJ=eqfSeG^3g937-UJJe2?d literal 0 HcmV?d00001 diff --git a/test.c b/test.c new file mode 100644 index 0000000..dba2cd7 --- /dev/null +++ b/test.c @@ -0,0 +1,18 @@ +#include +#define NORMAL "\x1b[0m" +#define BOLD "\x1b[1m" +#define BLACK "\x1b[30m" +#define RED "\x1b[31m" +#define GREEN "\x1b[32m" +#define YELLOW "\x1b[33m" +#define BLUE "\x1b[34m" +#define MAGENTA "\x1b[35m" +#define CYAN "\x1b[36m" +#define WHITE "\x1b[37m" + +//NORMAL, BOLD, BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE + +int main() { + printf("%sA%sA%sA%sA%sA%sA%sA%sA%sA%sA\n", NORMAL, BOLD, BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE); + return 0; +} \ No newline at end of file