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 0000000..3391b51 Binary files /dev/null and b/test differ 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