Improve
This commit is contained in:
parent
7ae4effadd
commit
610878d7c6
4 changed files with 6 additions and 9 deletions
15
config.h
15
config.h
|
@ -65,17 +65,14 @@ static const char unknown_str[] = "n/a";
|
|||
*/
|
||||
static const struct arg args[] = {
|
||||
/* function format argument */
|
||||
// { run_command, ": %4s | ", "amixer sget Master | awk -F\"[][]\" '/%/ { print $2 }' | head -n1" },
|
||||
{ vol_perc, ": %4s | ", "/dev/mixer" },
|
||||
{ run_command, " %3s%% | ", "xbacklight -get | awk '{print $1}'" },
|
||||
{ temp, " %s°C ", "/sys/class/thermal/thermal_zone0/temp" },
|
||||
{ entropy, " %s ", NULL },
|
||||
{ cpu_perc, " %s%% ", NULL },
|
||||
{ ram_perc, " %s%% ", NULL },
|
||||
{ run_command, ":%4s | ", "amixer sget Master | awk -F\"[][]\" '/%/ { print $2 }' | head -n1" },
|
||||
{ run_command, ":%3s%% | ", "xbacklight -get | awk '{print $1}'" },
|
||||
{ cpu_perc, ":%s%% ", NULL },
|
||||
{ ram_perc, ":%s%% ", NULL },
|
||||
// { netspeed_tx, " %s ^ ", "wlan0" },
|
||||
// { netspeed_rx, " %s ", "wlan0" },
|
||||
{ battery_perc, " %s%% ", "BAT0" },
|
||||
{ battery_perc, ":%s%% ", "BAT0" },
|
||||
{ battery_state, "%s ", "BAT0" },
|
||||
{ keymap, " %s ", NULL },
|
||||
{ keymap, ":%s ", NULL },
|
||||
{ datetime, " %s ", "%F %T" },
|
||||
};
|
||||
|
|
BIN
slstatus
BIN
slstatus
Binary file not shown.
BIN
slstatus.o
BIN
slstatus.o
Binary file not shown.
BIN
util.o
BIN
util.o
Binary file not shown.
Loading…
Reference in a new issue