This commit is contained in:
Your Name 2024-01-03 18:02:19 +03:00
parent 6d15bf5b9e
commit 2fac712297
3 changed files with 11 additions and 1 deletions

View File

@ -225,7 +225,7 @@ int GetModel(const char *title, const FETCH fetch) {
if (ptr != NULL) if (ptr != NULL)
*ptr = '\0'; *ptr = '\0';
printf("%s%s%s%s", fetch.color, title, fetch.font_color, model_buffer); printf("%s%s%s%.25s", fetch.color, title, fetch.font_color, model_buffer);
} }
fclose(fp); fclose(fp);

View File

@ -11,6 +11,11 @@ typedef struct {
/* Config, EDIT THERE */ /* Config, EDIT THERE */
#define COLORS " \033[31mx \033[32mx \033[33mx \033[34mx \033[35mx \033[0m" #define COLORS " \033[31mx \033[32mx \033[33mx \033[34mx \033[35mx \033[0m"
#define FONT_COLOR "\033[1;37m" #define FONT_COLOR "\033[1;37m"
#define BAR_WIDTH 10
/* Full path to capacity file */
/* Example: /sys/class/power_supply/battery/capacity */
#define BATT_NAME NULL
/* #define PRINT_TOTAL_MEM */ /* #define PRINT_TOTAL_MEM */
/* #define PRINT_USER_MEM */ /* #define PRINT_USER_MEM */

View File

@ -11,6 +11,11 @@ typedef struct {
/* Config, EDIT THERE */ /* Config, EDIT THERE */
#define COLORS " \033[31mx \033[32mx \033[33mx \033[34mx \033[35mx \033[0m" #define COLORS " \033[31mx \033[32mx \033[33mx \033[34mx \033[35mx \033[0m"
#define FONT_COLOR "\033[1;37m" #define FONT_COLOR "\033[1;37m"
#define BAR_WIDTH 10
/* Full path to capacity file */
/* Example: /sys/class/power_supply/battery/capacity */
#define BATT_NAME NULL
/* #define PRINT_TOTAL_MEM */ /* #define PRINT_TOTAL_MEM */
/* #define PRINT_USER_MEM */ /* #define PRINT_USER_MEM */