kfetch/config.h

47 lines
962 B
C
Raw Normal View History

2023-11-02 14:51:10 +00:00
#ifndef _CONFIG_H
#define _CONFIG_H
2023-10-18 21:16:57 +00:00
2023-11-02 14:51:10 +00:00
#include "fetch.h"
typedef struct {
char *title;
2023-11-26 09:49:11 +00:00
int (*func)(const char *title, const FETCH fetch);
2023-11-02 14:51:10 +00:00
} PARAMETR;
/* Config, EDIT THERE */
2024-01-03 14:46:33 +00:00
#define COLORS "\033[31m<> \033[32m<> \033[33m<> \033[34m<> \033[35m<> \033[36m<>\033[0m"
2023-12-15 15:45:57 +00:00
#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
2023-11-02 14:51:10 +00:00
2024-01-03 12:09:07 +00:00
/* #define PRINT_TOTAL_MEM */
/* #define PRINT_USER_MEM */
#define PRINT_USED_AND_TOTAL_MEM
2023-12-15 15:17:49 +00:00
#ifdef _MAIN_H
PARAMETR CONFIG[] = {
2024-01-03 14:46:33 +00:00
{" os ", PrintOs},
{" kr ", GetKernel},
{" usr ", GetUser},
{" upt ", GetUptime},
{" arch ", GetArch},
{"shell ", GetShell},
{" pkgs ", GetPkg},
{" mem ", GetMem},
{"model ", GetModel},
{" host ", GetHostname},
{" lAVG ", GetAVG},
{" batt ", GetBattery},
2024-01-03 10:18:43 +00:00
{" ", Blank},
2024-01-03 12:09:07 +00:00
{COLORS, Blank}
2023-10-18 21:16:57 +00:00
};
#endif
2023-12-15 15:17:49 +00:00
#endif