kanji and cpu stats
This commit is contained in:
parent
f68f49273e
commit
4ed2def931
1
Makefile
1
Makefile
|
@ -14,6 +14,7 @@ COM =\
|
|||
components/entropy\
|
||||
components/hostname\
|
||||
components/ip\
|
||||
components/kanji\
|
||||
components/kernel_release\
|
||||
components/keyboard_indicators\
|
||||
components/keymap\
|
||||
|
|
|
@ -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 */
|
||||
{ datetime, "%s", "%F %T" },
|
||||
` //{ 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},
|
||||
};
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue