add themes

This commit is contained in:
Your Name 2024-01-03 15:09:07 +03:00
parent 7ab3e8ef0c
commit a3a17c2b8b
11 changed files with 163 additions and 26 deletions

0
themes/.gitignore vendored Normal file
View file

39
themes/default.h Normal file
View file

@ -0,0 +1,39 @@
#ifndef _CONFIG_H
#define _CONFIG_H
#include "fetch.h"
typedef struct {
char *title;
int (*func)(const char *title, const FETCH fetch);
} PARAMETR;
/* 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"
#define PC_CHAR "<>"
/* #define PRINT_TOTAL_MEM */
/* #define PRINT_USER_MEM */
#define PRINT_USED_AND_TOTAL_MEM
#ifdef _MAIN_H
PARAMETR CONFIG[] = {
{" os ", PrintOs},
{" kr ", GetKernel},
{" usr ", GetUser},
{" upt ", GetUptime},
{" arch ", GetArch},
{"shell ", GetShell},
{" pkgs ", GetPkg},
{" mem ", GetMem},
{"model ", GetModel},
{" host ", GetHostname},
{" lAVG ", GetAVG},
{" ", Blank},
{COLORS, Blank}
};
#endif
#endif

32
themes/fira.h Normal file
View file

@ -0,0 +1,32 @@
#ifndef _CONFIG_H
#define _CONFIG_H
#include "fetch.h"
typedef struct {
char *title;
int (*func)(const char *title, const FETCH fetch);
} PARAMETR;
/* Config, EDIT THERE */
#define COLORS " \033[31mx \033[32mx \033[33mx \033[34mx \033[35mx \033[0m"
#define FONT_COLOR "\033[1;37m"
#define PC_CHAR "<>"
/* #define PRINT_TOTAL_MEM */
/* #define PRINT_USER_MEM */
#define PRINT_USED_AND_TOTAL_MEM
#ifdef _MAIN_H
PARAMETR CONFIG[] = {
{"", PrintOs},
{"", GetKernel},
{"", GetUptime},
{"", GetPkg},
{" ", Blank},
{COLORS, Blank}
};
#endif
#endif

41
themes/tree.h Normal file
View file

@ -0,0 +1,41 @@
#ifndef _CONFIG_H
#define _CONFIG_H
#include "fetch.h"
typedef struct {
char *title;
int (*func)(const char *title, const FETCH fetch);
} PARAMETR;
/* Config, EDIT THERE */
#define COLORS " \033[41;31m++ \033[42;32m++ \033[43;33m++ \033[44;34m++ \033[45;35m++ \033[46;36m++\033[0m"
#define FONT_COLOR "\033[1;37m"
#define PC_CHAR "<>"
/* #define PRINT_TOTAL_MEM */
/* #define PRINT_USER_MEM */
#define PRINT_USED_AND_TOTAL_MEM
#ifdef _MAIN_H
PARAMETR CONFIG[] = {
{" pc: ", Blank},
{" - mem ", GetMem},
{" - kr ", GetKernel},
{" - ar ", GetArch},
{" - mod ", GetModel},
{" - ht ", GetHostname},
{" ", Blank},
{" - other: ", Blank},
{" - os ", PrintOs},
{" - shl ", GetShell},
{" - pkg ", GetPkg},
{" - up ", GetUptime},
{" - avg ", GetAVG},
{" ", Blank},
{COLORS, Blank}
};
#endif
#endif