Add make config back and update to use wg0 vpn interface which is available on all devices

This commit is contained in:
caskd 2019-12-08 18:46:05 +01:00
parent c4a70dd814
commit f59bf46e07
No known key found for this signature in database
GPG Key ID: 79DB21404E300A27
2 changed files with 27 additions and 5 deletions

View File

@ -63,9 +63,11 @@ static const char unknown_str[] = "";
*/
static const struct arg args[] = {
/* function format argument */
{ load_avg, " %s |", NULL },
{ ram_used, " %sB /", NULL },
{ ram_free, " %sB |", NULL },
{ uptime, " %s |", NULL },
{ datetime, " %s ", "%a %d/%m %T" },
{ load_avg, " %s |", NULL },
{ ram_used, " %sB /", NULL },
{ ram_free, " %sB |", NULL },
{ netspeed_rx, " %sB/s", "wg0" },
{ netspeed_tx, " %sB/s |", "wg0" },
{ uptime, " %s |", NULL },
{ datetime, " %s ", "%a %d/%m %T" },
};

20
config.mk Normal file
View File

@ -0,0 +1,20 @@
# slstatus version
VERSION = 0
# customize below to fit your system
# paths
PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man
X11INC = /usr/X11R6/include
X11LIB = /usr/X11R6/lib
# flags
CPPFLAGS = -I$(X11INC) -D_DEFAULT_SOURCE
CFLAGS = -std=c99 -pedantic -Wall -Wextra -Os
LDFLAGS = -L$(X11LIB) -s
LDLIBS = -lX11
# compiler and linker
CC = cc