Updated config.h

This commit is contained in:
Your Name 2024-06-07 16:14:43 +03:00
parent e71fa14b98
commit ca373c992f
4 changed files with 80 additions and 15 deletions

View File

@ -5,27 +5,26 @@
#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[] = {
{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}}
{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}}
};
#endif

View File

@ -84,6 +84,9 @@ void GetArt(FETCH *fetch, int flag) {
else if (strstr(fetch->os_name, "Mint"))
SetArt(fetch, sizeof(Lmint), "dpkg -l | tail -n+6 | wc -l | tr -d ' '", Lmint, "\033[1;32m", flag);
else if (strstr(fetch->os_name, "OpenBSD"))
SetArt(fetch, sizeof(OpenBSD), "/bin/ls -1 /var/db/pkg/ | wc -l | tr -d ' '", OpenBSD, "\033[1;33m", flag);
else if (strstr(fetch->os_name, "Manana"))
SetArt(fetch, sizeof(Manana), "pacman -Qq | wc -l", Manana, "\033[1;32m", flag);

32
themes/default.h Normal file
View File

@ -0,0 +1,32 @@
#ifndef _CONFIG_H
#define _CONFIG_H
#include "fetch.h"
#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 ON_ERROR_STR "none"
PARAMETR CONFIG[] = {
{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
#endif

31
themes/mnnwvn.h Normal file
View File

@ -0,0 +1,31 @@
#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 BORDER "-------------------"
#define STR1 "\033[1;37m Somechars"
#define STR2 "\033[1;37m Somechars x2"
#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}}
};
#endif
#endif