Tweak network and add cpu freq
This commit is contained in:
parent
c29ad5e978
commit
4cc3a15277
11
config.h
11
config.h
|
@ -65,13 +65,14 @@ static const struct arg args[] = {
|
||||||
/* function format argument */
|
/* function format argument */
|
||||||
{ kernel_release, " %s |", NULL },
|
{ kernel_release, " %s |", NULL },
|
||||||
{ keymap, " %s |", NULL },
|
{ keymap, " %s |", NULL },
|
||||||
{ load_avg, " %s |", NULL },
|
// { battery_perc, " %s% |", "CMB1" },
|
||||||
|
// { temp, " %s°C |", "/sys/class/thermal/thermal_zone0/temp"},
|
||||||
|
{ load_avg, " %s @", NULL },
|
||||||
|
{ cpu_freq, " %sHz |", NULL },
|
||||||
{ ram_used, " %sB /", NULL },
|
{ ram_used, " %sB /", NULL },
|
||||||
{ ram_free, " %sB |", NULL },
|
{ ram_free, " %sB |", NULL },
|
||||||
{ swap_used, " %sB /", NULL },
|
{ netspeed_rx, " %7.7sB/s", "wg0" },
|
||||||
{ swap_free, " %sB |", NULL },
|
{ netspeed_tx, " %7.7sB/s |", "wg0" },
|
||||||
{ netspeed_rx, " %7.7sB/s", "twg0" },
|
|
||||||
{ netspeed_tx, " %7.7sB/s |", "twg0" },
|
|
||||||
{ uptime, " %s |", NULL },
|
{ uptime, " %s |", NULL },
|
||||||
{ datetime, " %s ", "%a %d/%m %T" },
|
{ datetime, " %s ", "%a %d/%m %T" },
|
||||||
};
|
};
|
||||||
|
|
|
@ -0,0 +1,25 @@
|
||||||
|
.Dd 2017-08-10
|
||||||
|
.Dt SLSTATUS 1
|
||||||
|
.Os
|
||||||
|
.Sh NAME
|
||||||
|
.Nm slstatus
|
||||||
|
.Nd suckless status monitor
|
||||||
|
.Sh SYNOPSIS
|
||||||
|
.Nm
|
||||||
|
.Op Fl s
|
||||||
|
.Sh DESCRIPTION
|
||||||
|
.Nm
|
||||||
|
is a suckless status monitor for window managers that use WM_NAME (e.g. dwm) or
|
||||||
|
stdin to fill the status bar.
|
||||||
|
By default,
|
||||||
|
.Nm
|
||||||
|
outputs to WM_NAME.
|
||||||
|
.Sh OPTIONS
|
||||||
|
.Bl -tag -width Ds
|
||||||
|
.It Fl s
|
||||||
|
Write to stdout instead of WM_NAME.
|
||||||
|
.El
|
||||||
|
.Sh CUSTOMIZATION
|
||||||
|
.Nm
|
||||||
|
can be customized by creating a custom config.h and (re)compiling the source
|
||||||
|
code. This keeps it fast, secure and simple.
|
Loading…
Reference in New Issue