This commit is contained in:
Your Name 2023-12-28 15:34:03 +03:00
parent d7047ceb1e
commit 7f7ca8c507
2 changed files with 13 additions and 12 deletions

View File

@ -10,20 +10,21 @@ typedef struct {
/* Config, EDIT THERE */ /* Config, EDIT THERE */
#define FONT_COLOR "\033[1;37m" #define FONT_COLOR "\033[1;37m"
#define PC_CHAR "%" #define PC_CHAR ""
#ifdef _MAIN_H #ifdef _MAIN_H
PARAMETR CONFIG[] = { PARAMETR CONFIG[] = {
{" OS ", PrintOs}, {" --- ", GetUser},
{" KERNEL ", GetKernel}, {"\033[31m  ", PrintOs},
{" USER ", GetUser}, {"\033[32m  ", GetKernel},
{" UPTIME ", GetUptime}, {"\033[33m  ", GetUser},
{" ARCH ", GetArch}, {"\033[34m  ", GetUptime},
{" SHELL ", GetShell}, {"\033[35m  ", GetArch},
{" PKGS ", GetPkg}, {"\033[36m  ", GetShell},
{" MEM ", GetMem}, {"\033[37m  ", GetPkg},
{" ", Blank}, {"\033[38m  ", GetMem},
{" COLORS ", PrintColors} {" ", Blank},
{" ", PrintColors}
}; };
#endif #endif

View File

@ -103,7 +103,7 @@ int PrintColors(const char *title, const FETCH fetch) {
printf("%s%s%s", fetch.color, title, fetch.font_color); printf("%s%s%s", fetch.color, title, fetch.font_color);
for (int i = 1; i < 7; i++) for (int i = 1; i < 7; i++)
printf("\033[1;3%dm%s\033[0m \033[0;3%dm%s\033[0m ", i, PC_CHAR, i, PC_CHAR); printf("\033[1;3%dm%s\033[0m ", i, PC_CHAR);
return 0; return 0;
} }