This commit is contained in:
Your Name 2023-11-26 12:49:11 +03:00
parent 4b434d35ae
commit bbf0fd0aba
4 changed files with 81 additions and 36 deletions

View file

@ -5,7 +5,7 @@
typedef struct {
char *title;
void (*func)(const char *title, const FETCH fetch);
int (*func)(const char *title, const FETCH fetch);
} PARAMETR;
/* Config, EDIT THERE */
@ -13,12 +13,13 @@ typedef struct {
#define PC_CHAR "%"
static PARAMETR CONFIG[] = {
{"Os > ", PrintOs},
{"Krnl > ", GetKernel},
{"User > ", GetUser},
{"Uptm > ", GetUptime},
{"Arch > ", GetArch},
{"Shll > ", GetShell},
{"Os ", PrintOs},
{"Krnl ", GetKernel},
{"User ", GetUser},
{"Uptm ", GetUptime},
{"Arch ", GetArch},
{"Shll ", GetShell},
{"Pkgs ", GetPkg},
{" ", Blank},
{" ", PrintColors}
};