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\
|
||||
|
|
11
config.def.h
11
config.def.h
|
@ -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
|
||||
|
@ -64,6 +65,12 @@ static const char unknown_str[] = "n/a";
|
|||
* wifi_perc WiFi signal in percent interface name (wlan0)
|
||||
*/
|
||||
static const struct arg args[] = {
|
||||
/* function format argument */
|
||||
{ datetime, "%s", "%F %T" },
|
||||
/* 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},
|
||||
};
|
||||
|
|
|
@ -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