Added images and IMAGES.md for credits, addedd options, use -h for a list.
1
.gitignore
vendored
|
@ -1,2 +1 @@
|
|||
uwufetch
|
||||
res/*
|
|
@ -20,6 +20,9 @@ To uninstall:
|
|||
cd uwufetch
|
||||
make uninstall
|
||||
```
|
||||
## Images
|
||||
|
||||
[IMAGES.md](https://github.com/TheDarkBug/uwufetch/tree/main/res/IMAGES.md)
|
||||
|
||||
## License
|
||||
This program is provided under the [GPL-3.0 License](https://github.com/TheDarkBug/uwufetch/LICENSE).
|
||||
|
|
24
res/IMAGES.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# Image logos
|
||||
|
||||
Int this directory, all the images for the logos, are stored.
|
||||
If you want to remove *your* image from this repository contact me on [reddit](https://www.reddit.com/user/TheDarkBug).
|
||||
|
||||
## Credits
|
||||
|
||||
<img src="https://raw.githubusercontent.com/TheDarkBug/uwufetch/main/res/arch.png" title="" alt="image" width="200"> Nyarch Linuwu by u/Ishaan_P ([original post](https://www.reddit.com/r/linuxmasterrace/comments/lxfg9j/someone_posted_uwuntu_so_i_made_nyarch/))
|
||||
<img src="https://raw.githubusercontent.com/TheDarkBug/uwufetch/main/res/artix.png" title="" alt="image" width="200"> Nyartix Linuwu by u/akzcake ([original post](https://www.reddit.com/r/linuxmasterrace/comments/ly6wd1/nyartix/))
|
||||
<img src="https://raw.githubusercontent.com/TheDarkBug/uwufetch/main/res/debian.png" title="" alt="image" width="200"> Debinyan by u/Ishaan_P ([original post](https://www.reddit.com/r/linuxmasterrace/comments/lxqip4/debinyan/))
|
||||
<img src="https://raw.githubusercontent.com/TheDarkBug/uwufetch/main/res/endeavour.png" title="" alt="image" width="200"> Endowo Os by u/zuru2003 ([original post](https://www.reddit.com/r/linuxmasterrace/comments/ly9zed/endowo_os/))
|
||||
<img src="https://raw.githubusercontent.com/TheDarkBug/uwufetch/main/res/fedora.png" title="" alt="image" width="200"> Fedowa by u/iD3nis124 ([original post](https://www.reddit.com/r/linuxmasterrace/comments/lxjp3s/saw_nyarch_and_had_to_do_fedowa/))
|
||||
<img src="https://raw.githubusercontent.com/TheDarkBug/uwufetch/main/res/gentoo.png" title="" alt="image" width="200"> GentOwO by u/Abbix57 ([original post](https://www.reddit.com/r/linuxmasterrace/comments/lyeija/gentowo/))
|
||||
<img src="https://raw.githubusercontent.com/TheDarkBug/uwufetch/main/res/manjaro.png" title="" alt="image" width="200"> Myanjawo by u/matrixrunner ([original post](https://www.reddit.com/r/linuxmasterrace/comments/lxx9h7/myanjawo_also_in_wallpaper/))
|
||||
<img src="https://raw.githubusercontent.com/TheDarkBug/uwufetch/main/res/mint.png" title="" alt="image" width="200"> Miwint by u/iD3nis124 ([original post](https://www.reddit.com/r/linuxmasterrace/comments/ly8oy0/seen_a_lot_of_people_asking_for_mint_so_here_it_is/))
|
||||
<img src="https://raw.githubusercontent.com/TheDarkBug/uwufetch/main/res/neon.png" title="" alt="image" width="200"> KDE Uwon by u/muff2 ([original post](https://www.reddit.com/r/linuxmasterrace/comments/lxt82v/kde_uwon/))
|
||||
<img src="https://raw.githubusercontent.com/TheDarkBug/uwufetch/main/res/nixos.png" title="" alt="image" width="200"> NwnixOS by u/ant-artica ([original post](https://www.reddit.com/r/linuxmasterrace/comments/lzdwl4/nixowos/))
|
||||
<img src="https://raw.githubusercontent.com/TheDarkBug/uwufetch/main/res/opensuse.png" title="" alt="image" width="200"> OwOsuse by u/VortexAcherontic ([original post](https://www.reddit.com/r/linuxmasterrace/comments/lyhgxp/my_better_attempt_on_owosuse/))
|
||||
<img src="https://raw.githubusercontent.com/TheDarkBug/uwufetch/main/res/pop_os.png" title="" alt="image" width="200"> Pop UwUs by u/Mochimo786 ([original post](https://www.reddit.com/r/linuxmasterrace/comments/lxz3xu/pop_uwus/))
|
||||
<img src="https://raw.githubusercontent.com/TheDarkBug/uwufetch/main/res/slackware.png" title="" alt="image" width="200"> Slawkyware by u/theldus ([original post](https://www.reddit.com/r/linuxmasterrace/comments/lyt6xi/slawckyware/))
|
||||
<img src="https://raw.githubusercontent.com/TheDarkBug/uwufetch/main/res/solus.png" title="" alt="image" width="200"> Sowus by u/welpelp ([original post](https://www.reddit.com/r/linuxmasterrace/comments/ly9il3/continuing_the_trend_i_made_sowus_my_first/))
|
||||
<img src="https://raw.githubusercontent.com/TheDarkBug/uwufetch/main/res/tux.png" title="" alt="image" width="200"> Tuwu by u/Annual-Examination96 ([original post](https://www.reddit.com/r/linuxmasterrace/comments/lz2i32/tuwu/))
|
||||
<img src="https://raw.githubusercontent.com/TheDarkBug/uwufetch/main/res/ubuntu.png" title="" alt="image" width="200"> Uwuntu by u/Chicki2D ([original post](https://www.reddit.com/r/linuxmasterrace/comments/lwsnul/uwuntu/))
|
||||
<img src="https://raw.githubusercontent.com/TheDarkBug/uwufetch/main/res/void.png" title="" alt="image" width="200"> Owoid by u/Satoqz ([original post](https://www.reddit.com/r/linuxmasterrace/comments/lxnjwd/my_boyfriend_decided_to_create_owoid/))
|
BIN
res/artix.png
Normal file
After Width: | Height: | Size: 110 KiB |
BIN
res/debian.png
Normal file
After Width: | Height: | Size: 56 KiB |
BIN
res/endeavour.png
Normal file
After Width: | Height: | Size: 84 KiB |
BIN
res/fedora.png
Normal file
After Width: | Height: | Size: 297 KiB |
BIN
res/gentoo.png
Normal file
After Width: | Height: | Size: 58 KiB |
BIN
res/manjaro.png
Normal file
After Width: | Height: | Size: 96 KiB |
BIN
res/mint.png
Normal file
After Width: | Height: | Size: 128 KiB |
BIN
res/neon.png
Normal file
After Width: | Height: | Size: 144 KiB |
BIN
res/nixos.png
Normal file
After Width: | Height: | Size: 206 KiB |
BIN
res/opensuse.png
Normal file
After Width: | Height: | Size: 94 KiB |
BIN
res/pop_os.png
Normal file
After Width: | Height: | Size: 55 KiB |
BIN
res/slackware.png
Normal file
After Width: | Height: | Size: 368 KiB |
BIN
res/solus.png
Normal file
After Width: | Height: | Size: 170 KiB |
BIN
res/tux.png
Normal file
After Width: | Height: | Size: 76 KiB |
BIN
res/ubuntu.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
res/void.png
Normal file
After Width: | Height: | Size: 149 KiB |
30
uwufetch.c
|
@ -31,28 +31,30 @@ void print_image();
|
|||
void usage(char*);
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
int opt = 0;
|
||||
int opt = 0, a_i_flag = 0;
|
||||
get_info();
|
||||
//sprintf(version_name, "%s", "debian"); // a debug thing
|
||||
|
||||
while((opt = getopt(argc, argv, "a:hi")) != -1) {
|
||||
while((opt = getopt(argc, argv, "ad:hi")) != -1) {
|
||||
switch(opt) {
|
||||
case 'a':
|
||||
if (optarg) sprintf(version_name, "%s", optarg);
|
||||
if (opt != 'i') print_ascii();
|
||||
a_i_flag = 0;
|
||||
break;
|
||||
case 'i':
|
||||
case 'd':
|
||||
if (optarg) sprintf(version_name, "%s", optarg);
|
||||
if (opt != 'a') print_image();
|
||||
break;
|
||||
case 'h':
|
||||
usage(argv[0]);
|
||||
return 0;
|
||||
case 'i':
|
||||
a_i_flag = 1;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (argc == 1) print_ascii();
|
||||
if (argc == 1 || a_i_flag == 0) print_ascii();
|
||||
else if (a_i_flag) print_image();
|
||||
print_info();
|
||||
}
|
||||
|
||||
|
@ -92,7 +94,7 @@ int pkgman() { // this is just a function that returns the total of installed pa
|
|||
}
|
||||
|
||||
void print_info() { // print collected info
|
||||
printf("\033[8A\033[17C %s%s%s@%s\n", NORMAL, BOLD, user, host);
|
||||
printf("\033[9A\033[17C %s%s%s@%s\n", NORMAL, BOLD, user, host);
|
||||
printf("\033[17C %s%sOWOS %s%s\n", NORMAL, BOLD, NORMAL, version_name);
|
||||
printf("\033[17C %s%sKERNEL %s%s %s\n", NORMAL, BOLD, NORMAL, sys_var.release, sys_var.machine);
|
||||
printf("\033[17C %s%sCPUWU %s%s\n", NORMAL, BOLD, NORMAL, cpu_model);
|
||||
|
@ -132,7 +134,7 @@ void get_info() { // get all necessary info
|
|||
void print_ascii() { // prints logo (as ascii art) of the given system. distributions listed alphabetically.
|
||||
if (strcmp(version_name, "arch") == 0) {
|
||||
sprintf(version_name, "%s", "Nyarch Linuwu");
|
||||
printf( "\033[8C%s/\\\n"
|
||||
printf( "\033[1E\033[8C%s/\\\n"
|
||||
" / \\\n"
|
||||
" /\\ \\\n"
|
||||
" / > w <\\\n"
|
||||
|
@ -141,7 +143,7 @@ void print_ascii() { // prints logo (as ascii art) of the given system. distribu
|
|||
" /_-'' ''-_\\\n\n", BLUE);
|
||||
} else if (strcmp(version_name, "artix") == 0) {
|
||||
sprintf(version_name, "%s", "Nyartix Linuwu");
|
||||
printf( "\033[8C%s/\\\n"
|
||||
printf( "\033[1E\033[8C%s/\\\n"
|
||||
" / \\\n"
|
||||
" /`'.,\\\n"
|
||||
" /\u2022 w \u2022 \\\n"
|
||||
|
@ -150,7 +152,7 @@ void print_ascii() { // prints logo (as ascii art) of the given system. distribu
|
|||
" /.,'` `'.\\\n\n", BLUE);
|
||||
} else if (strcmp(version_name, "debian") == 0) {
|
||||
sprintf(version_name, "%s", "Debinyan");
|
||||
printf( "\033[6C%s______\n"
|
||||
printf( "\033[1E\033[6C%s______\n"
|
||||
" / ___ \\\n"
|
||||
" | / OwO |\n"
|
||||
" | \\____-\n"
|
||||
|
@ -158,7 +160,7 @@ void print_ascii() { // prints logo (as ascii art) of the given system. distribu
|
|||
" --_\n\n\n", RED);
|
||||
} else if (strcmp(version_name, "fedora") == 0) {
|
||||
sprintf(version_name, "%s", "Fedowoa");
|
||||
printf( "\033[8C%s_____\n"
|
||||
printf( "\033[1E\033[8C%s_____\n"
|
||||
" / __)%s\\\n"
|
||||
" %s> %s| / %s<%s\\ \\\n"
|
||||
" __%s_| %sw%s|_%s_/ /\n"
|
||||
|
@ -168,7 +170,7 @@ void print_ascii() { // prints logo (as ascii art) of the given system. distribu
|
|||
" %s\\%s(_____/\n", BLUE, CYAN, WHITE, BLUE, WHITE, CYAN, BLUE, CYAN, BLUE, CYAN, BLUE, CYAN, BLUE, CYAN, BLUE, CYAN, BLUE);
|
||||
} else if (strcmp(version_name, "gentoo") == 0) {
|
||||
sprintf(version_name, "%s", "GentOwO");
|
||||
printf( "%s _-----_\n"
|
||||
printf( "\033[1E\033[3C%s_-----_\n"
|
||||
" ( \\\n"
|
||||
" \\ OwO \\\n"
|
||||
"%s \\ )\n"
|
||||
|
@ -177,7 +179,7 @@ void print_ascii() { // prints logo (as ascii art) of the given system. distribu
|
|||
" \\____-\n\n", MAGENTA, WHITE);
|
||||
} else if (strcmp(version_name, "manjaro") == 0) {
|
||||
sprintf(version_name, "%s", "Myanjawo");
|
||||
printf( " \u25b3 \u25b3 \u25e0\u25e0\u25e0\u25e0\n"
|
||||
printf( "\033[0E\033[1C\u25b3 \u25b3 \u25e0\u25e0\u25e0\u25e0\n"
|
||||
" \e[0;42m \e[0m \e[0;42m \e[0m\n"
|
||||
" \e[0;42m \e[0m\e[0;42m\e[1;30m > w < \e[0m\e[0;42m \e[0m \e[0;42m \e[0m\n"
|
||||
" \e[0;42m \e[0m \e[0;42m \e[0m\n"
|
||||
|
|