Added arch Linux logo.

This commit is contained in:
TheDarkBug 2021-01-18 23:49:35 +01:00
parent 049d6c3895
commit 0b7c4ebceb
5 changed files with 46 additions and 7 deletions

View file

@ -30,6 +30,6 @@ install:
uninstall:
@echo Uninstalling lightfetch...
sudo rm -f $(install_dir)$(name)
rm ../lightfetch
rm -rf ../lightfetch
@echo Uninstall completed!
@exit

View file

@ -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

27
main.c
View file

@ -3,6 +3,17 @@
#include <string.h>
#include <unistd.h>
#include <sys/utsname.h>
// 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;
}

BIN
test Executable file

Binary file not shown.

18
test.c Normal file
View file

@ -0,0 +1,18 @@
#include <stdio.h>
#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;
}