kanji and cpu stats

This commit is contained in:
Sky Hearn 2024-02-27 15:02:01 -08:00
parent f68f49273e
commit 4ed2def931
3 changed files with 13 additions and 2 deletions

View File

@ -14,6 +14,7 @@ COM =\
components/entropy\
components/hostname\
components/ip\
components/kanji\
components/kernel_release\
components/keyboard_indicators\
components/keymap\

View File

@ -31,6 +31,7 @@ static const char unknown_str[] = "n/a";
* hostname hostname NULL
* ipv4 IPv4 address interface name (eth0)
* ipv6 IPv6 address interface name (eth0)
* kanji japanese day of week kanji NULL
* kernel_release `uname -r` NULL
* keyboard_indicators caps/num lock indicators format string (c?n?)
* see keyboard_indicators.c
@ -65,5 +66,11 @@ static const char unknown_str[] = "n/a";
*/
static const struct arg args[] = {
/* function format argument */
` //{ battery_state, "BAT0 : %s, ", "BAT0"},
//{ battery_perc, "%s\% ", "BAT0"},
//{ battery_remaining, "BAT0 : %s |", "BAT0"},
{ cpu_freq, "cpu : %s MHz ",NULL},
{ cpu_perc, "%s\% | ", NULL},
{ datetime, "%s ", "%F %T" },
{ kanji, "%s", NULL},
};

View File

@ -31,6 +31,9 @@ const char *hostname(const char *unused);
const char *ipv4(const char *interface);
const char *ipv6(const char *interface);
/* kanji */
const char *kanji(const char *unused);
/* kernel_release */
const char *kernel_release(const char *unused);