:)
This commit is contained in:
parent
d7047ceb1e
commit
7f7ca8c507
21
config.h
21
config.h
@ -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},
|
||||||
|
{"\033[38m ", GetMem},
|
||||||
{" ", Blank},
|
{" ", Blank},
|
||||||
{" COLORS ", PrintColors}
|
{" ", PrintColors}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user