From d03f82d266652f9ea3481566b666a00c54979819 Mon Sep 17 00:00:00 2001 From: usr Date: Mon, 24 Jun 2024 17:12:57 +0300 Subject: [PATCH] added new theme --- config.h | 29 +++++++++++++++-------------- themes/mini_wttr.in.h | 24 ++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 14 deletions(-) create mode 100644 themes/mini_wttr.in.h diff --git a/config.h b/config.h index 3947ab9..26d2d7f 100644 --- a/config.h +++ b/config.h @@ -5,26 +5,27 @@ #include "structs.h" /* Config, EDIT THERE */ +#define COLORS " \033[31m<> \033[32m<> \033[33m<> \033[34m<> \033[35m<> \033[36m<>\033[0m" #define FONT_COLOR "\033[1;37m" #ifdef _MAIN_C -#define BORDER "-------------------" -#define STR1 "\033[1;37m Special for mnnwvn" -#define STR2 "\033[1;37m Edit config.h" - #define ON_ERROR_STR "none" PARAMETR CONFIG[] = { - {Blank, {.str0=STR1, .str1=NULL}}, - {Blank, {.str0=BORDER, .str1=NULL}}, - {PrintOs, {.str0=" Distro: ", .str1=NULL}}, - {GetKernel, {.str0=" Kernel: ", .str1=NULL}}, - {GetUptime, {.str0=" Uptime: ", .str1=NULL}}, - {GetPkg, {.str0=" Packages: ", .str1=NULL}}, - {GetShell, {.str0=" Shell: ", .str1=NULL}}, - {GetMem, {.str0=" Memory: ", .str1=NULL}}, - {Blank, {.str0=BORDER, .str1=NULL}}, - {Blank, {.str0=STR2, .str1=NULL}} + {PrintOs, {.str0=" os ", .str1=NULL}}, + {GetKernel, {.str0=" kr ", .str1=NULL}}, + {GetUser, {.str0=" usr ", .str1=NULL}}, + {GetUptime, {.str0=" upt ", .str1=NULL}}, + {GetArch, {.str0=" arch ", .str1=NULL}}, + {GetShell, {.str0="shell ", .str1=NULL}}, + {GetPkg, {.str0=" pkgs ", .str1=NULL}}, + {GetMem, {.str0=" mem ", .str1=NULL}}, + {GetModel, {.str0="model ", .str1=NULL}}, + {GetHostname, {.str0=" host ", .str1=NULL}}, + {GetAVG, {.str0=" AVG ", .str1=NULL}}, + {Blank, {.str0=" ", .str1=NULL}}, + {Execute, {.str0=" Id's ", .str1=NULL, .str2="id -gn"}}, + {Blank, {.str0=COLORS, .str1=NULL}} }; #endif diff --git a/themes/mini_wttr.in.h b/themes/mini_wttr.in.h new file mode 100644 index 0000000..69b2629 --- /dev/null +++ b/themes/mini_wttr.in.h @@ -0,0 +1,24 @@ +#ifndef _CONFIG_H +#define _CONFIG_H + +#include "fetch.h" +#include "structs.h" + +/* Config, EDIT THERE */ +#define FONT_COLOR "\033[1;37m" + +#ifdef _MAIN_C +#define ON_ERROR_STR "none" + +PARAMETR CONFIG[] = { + {PrintOs, {.str0=" Os : ", .str1=NULL}}, + {GetMem, {.str0=" Mem : ", .str1=NULL}}, + {GetUptime, {.str0=" Uptime : ", .str1=NULL}}, + + {Blank, {.str0=" ", .str1=NULL}}, + {GetUser, {.str0=" ", .str1=",%s Hi!"}}, + {Execute, {.str0=" Outside: ", .str2="wget https://wttr.in/?format=\"%t+%C\" -qO-"}} +}; +#endif + +#endif