|
|
@@ -63,11 +63,13 @@ static const char unknown_str[] = "n/a"; |
|
|
|
*/ |
|
|
|
static const struct arg args[] = { |
|
|
|
/* function format argument */ |
|
|
|
{ keymap, "%s ", "NULL"}, |
|
|
|
{ keymap, "[%s] ", "NULL"}, |
|
|
|
{ username, ":%s@", "NULL"}, |
|
|
|
{ hostname, "%s ", "NULL"}, |
|
|
|
{ run_command, ":%s ", "amixer sget Master | awk -F\"[][]\" '/%/ { print $2 }' | head -n1" }, |
|
|
|
{ battery_perc, ":%s|", "BAT1"}, |
|
|
|
{ battery_state, "%s ", "BAT1"}, |
|
|
|
{ cpu_perc, ":%s ", "NULL"}, |
|
|
|
{ cpu_perc, ":%02s ", "NULL"}, |
|
|
|
{ ram_free, ":%s ", "NULL"}, |
|
|
|
{ datetime, "%s", "%a %F %H:%M" }, |
|
|
|
}; |