From 298bfe2189e7e402fae886d213c6589726f844a4 Mon Sep 17 00:00:00 2001 From: 8nlight <8nlight@disroot.org> Date: Thu, 19 Oct 2023 00:16:57 +0300 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20=D1=84=D0=B0=D0=B9=D0=BB=D1=8B=20=D0=B2=20=C2=AB?= =?UTF-8?q?/=C2=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.h | 17 +++++++++++++++++ funcs.h | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 config.h diff --git a/config.h b/config.h new file mode 100644 index 0000000..8b6bb2b --- /dev/null +++ b/config.h @@ -0,0 +1,17 @@ +#ifndef CONFIG_H +#define CONFIG_H + +void (*FUNCS[])(void) = { + PrintOs, + GetAvg, + GetKernel, + GetShell, + GetUptime, + GetUser, + GetPkgs, + GetArch, + Blank, + PrintColors +}; + +#endif diff --git a/funcs.h b/funcs.h index adbd4da..2becbf7 100644 --- a/funcs.h +++ b/funcs.h @@ -165,7 +165,7 @@ void GetAvg(void) { } #endif - printf("%sLoadAvg \033[0;37m%.2f %.2f %.2f", Logo.color, avg[0], avg[1], avg[2]); + printf("%sLOAGAVG \033[0;37m%.2f %.2f %.2f", Logo.color, avg[0], avg[1], avg[2]); } void Blank(void) {