diff --git a/src/fetch.c b/src/fetch.c index d93fc7a..c1cbc06 100644 --- a/src/fetch.c +++ b/src/fetch.c @@ -225,7 +225,7 @@ int GetModel(const char *title, const FETCH fetch) { if (ptr != NULL) *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); diff --git a/themes/fira.h b/themes/fira.h index 34e2c86..98976eb 100644 --- a/themes/fira.h +++ b/themes/fira.h @@ -11,6 +11,11 @@ typedef struct { /* Config, EDIT THERE */ #define COLORS " \033[31mx \033[32mx \033[33mx \033[34mx \033[35mx \033[0m" #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_USER_MEM */ diff --git a/themes/mini.h b/themes/mini.h index 12beb84..b718714 100644 --- a/themes/mini.h +++ b/themes/mini.h @@ -11,6 +11,11 @@ typedef struct { /* Config, EDIT THERE */ #define COLORS " \033[31mx \033[32mx \033[33mx \033[34mx \033[35mx \033[0m" #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_USER_MEM */