X-Git-Url: https://git.xinqibao.xyz/slstatus.git/blobdiff_plain/823f2d047f9f14c5e401c337274c8c19542b3065..ad39aa012c5da8f1f53c8f7366d5177e538da255:/config.def.h diff --git a/config.def.h b/config.def.h index 1476c30..a961dbc 100644 --- a/config.def.h +++ b/config.def.h @@ -4,12 +4,17 @@ #define UPDATE_INTERVAL 1 /* text to show if no value can be retrieved */ -#define UNKNOWN_STR "n/a" +#define UNKNOWN_STR "n/a" + +/* maximum output string length */ +#define MAXLEN 2048 /* statusbar - battery_perc (battery percentage) [argument: battery name] +- battery_power (battery power usage) [argument: battery name] - battery_state (battery charging state) [argument: battery name] - cpu_perc (cpu usage in percent) [argument: NULL] +- cpu_freq (cpu frequency) [argument: NULL] - datetime (date and time) [argument: format] - disk_free (free disk space in GB) [argument: mountpoint] - disk_perc (disk usage in percent) [argument: mountpoint] @@ -39,8 +44,8 @@ - wifi_perc (wifi signal in percent) [argument: wifi card interface name] - wifi_essid (wifi essid) [argument: wifi card interface name] */ static const struct arg args[] = { - /* function format argument */ - { cpu_perc, "[CPU %4s] ", NULL }, - { ram_perc, "[RAM %3s] ", NULL }, - { datetime, "[ %s ]", "%F %T" }, + /* function format argument */ + { cpu_perc, "[CPU %3s%%] ", NULL }, + { ram_perc, "[RAM %2s%%] ", NULL }, + { datetime, "[ %s ]", "%F %T" }, };