:)
This commit is contained in:
parent
d7047ceb1e
commit
7f7ca8c507
23
config.h
23
config.h
@ -10,20 +10,21 @@ typedef struct {
|
||||
|
||||
/* Config, EDIT THERE */
|
||||
#define FONT_COLOR "\033[1;37m"
|
||||
#define PC_CHAR "%"
|
||||
#define PC_CHAR "▂"
|
||||
|
||||
#ifdef _MAIN_H
|
||||
PARAMETR CONFIG[] = {
|
||||
{" OS ", PrintOs},
|
||||
{" KERNEL ", GetKernel},
|
||||
{" USER ", GetUser},
|
||||
{" UPTIME ", GetUptime},
|
||||
{" ARCH ", GetArch},
|
||||
{" SHELL ", GetShell},
|
||||
{" PKGS ", GetPkg},
|
||||
{" MEM ", GetMem},
|
||||
{" ", Blank},
|
||||
{" COLORS ", PrintColors}
|
||||
{" --- ", GetUser},
|
||||
{"\033[31m ", PrintOs},
|
||||
{"\033[32m ", GetKernel},
|
||||
{"\033[33m ", GetUser},
|
||||
{"\033[34m ", GetUptime},
|
||||
{"\033[35m ", GetArch},
|
||||
{"\033[36m ", GetShell},
|
||||
{"\033[37m ", GetPkg},
|
||||
{"\033[38m ", GetMem},
|
||||
{" ", Blank},
|
||||
{" ", PrintColors}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -103,7 +103,7 @@ int PrintColors(const char *title, const FETCH fetch) {
|
||||
printf("%s%s%s", fetch.color, title, fetch.font_color);
|
||||
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user