2024-01-03 12:09:07 +00:00
|
|
|
#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"
|
2024-01-03 14:46:33 +00:00
|
|
|
#define BAR_WIDTH 10
|
2024-01-03 15:27:09 +00:00
|
|
|
/* Uncomment if you use firacode font */
|
|
|
|
/* #define FIRA_CODE */
|
2024-01-03 14:46:33 +00:00
|
|
|
|
|
|
|
/* Full path to capacity file */
|
|
|
|
/* Example: /sys/class/power_supply/battery/capacity */
|
|
|
|
#define BATT_NAME NULL
|
2024-01-03 12:09:07 +00:00
|
|
|
|
|
|
|
#ifdef _MAIN_H
|
|
|
|
PARAMETR CONFIG[] = {
|
|
|
|
{" pc: ", Blank},
|
|
|
|
{" - mem ", GetMem},
|
|
|
|
{" - kr ", GetKernel},
|
|
|
|
{" - ar ", GetArch},
|
|
|
|
{" - mod ", GetModel},
|
|
|
|
{" - ht ", GetHostname},
|
|
|
|
{" ", Blank},
|
2024-01-03 14:46:33 +00:00
|
|
|
{" - info: ", Blank},
|
2024-01-03 12:09:07 +00:00
|
|
|
{" - os ", PrintOs},
|
|
|
|
{" - shl ", GetShell},
|
|
|
|
{" - pkg ", GetPkg},
|
|
|
|
{" - up ", GetUptime},
|
|
|
|
{" - avg ", GetAVG},
|
2024-01-03 14:46:33 +00:00
|
|
|
{" - bat ", GetBattery},
|
2024-01-03 12:09:07 +00:00
|
|
|
{" ", Blank},
|
|
|
|
{COLORS, Blank}
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|