add GetBattery
This commit is contained in:
parent
d28f74ea00
commit
6d15bf5b9e
5 changed files with 66 additions and 7 deletions
|
@ -11,6 +11,11 @@ typedef struct {
|
|||
/* 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 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 */
|
||||
|
@ -29,6 +34,7 @@ PARAMETR CONFIG[] = {
|
|||
{"model ", GetModel},
|
||||
{" host ", GetHostname},
|
||||
{" lAVG ", GetAVG},
|
||||
{" batt ", GetBattery},
|
||||
{" ", Blank},
|
||||
{COLORS, Blank}
|
||||
};
|
||||
|
|
|
@ -11,6 +11,11 @@ typedef struct {
|
|||
/* 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 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 */
|
||||
|
@ -25,12 +30,13 @@ PARAMETR CONFIG[] = {
|
|||
{" - mod ", GetModel},
|
||||
{" - ht ", GetHostname},
|
||||
{" ", Blank},
|
||||
{" - other: ", Blank},
|
||||
{" - info: ", Blank},
|
||||
{" - os ", PrintOs},
|
||||
{" - shl ", GetShell},
|
||||
{" - pkg ", GetPkg},
|
||||
{" - up ", GetUptime},
|
||||
{" - avg ", GetAVG},
|
||||
{" - bat ", GetBattery},
|
||||
{" ", Blank},
|
||||
{COLORS, Blank}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue