add GetBattery
This commit is contained in:
parent
d28f74ea00
commit
6d15bf5b9e
5 changed files with 66 additions and 7 deletions
24
config.h
24
config.h
|
@ -9,8 +9,13 @@ typedef struct {
|
|||
} PARAMETR;
|
||||
|
||||
/* Config, EDIT THERE */
|
||||
#define COLORS " \033[31mx \033[32mx \033[33mx \033[34mx \033[35mx \033[0m"
|
||||
#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 */
|
||||
|
@ -18,11 +23,18 @@ typedef struct {
|
|||
|
||||
#ifdef _MAIN_H
|
||||
PARAMETR CONFIG[] = {
|
||||
{" ", Blank},
|
||||
{"\033[1;31m ", PrintOs},
|
||||
{" ", GetKernel},
|
||||
{" ", GetUptime},
|
||||
{" ", GetPkg},
|
||||
{" os ", PrintOs},
|
||||
{" kr ", GetKernel},
|
||||
{" usr ", GetUser},
|
||||
{" upt ", GetUptime},
|
||||
{" arch ", GetArch},
|
||||
{"shell ", GetShell},
|
||||
{" pkgs ", GetPkg},
|
||||
{" mem ", GetMem},
|
||||
{"model ", GetModel},
|
||||
{" host ", GetHostname},
|
||||
{" lAVG ", GetAVG},
|
||||
{" batt ", GetBattery},
|
||||
{" ", Blank},
|
||||
{COLORS, Blank}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue