add tx
This commit is contained in:
12
config.def.h
12
config.def.h
@ -57,14 +57,15 @@ static const char unknown_str[] = "?";
|
|||||||
* wifi_perc WiFi signal in percent interface name (wlan0)
|
* wifi_perc WiFi signal in percent interface name (wlan0)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define IFACE "wifibox0"
|
#define IFACE "enp0s31f6"
|
||||||
#define BAT "BAT1"
|
#define BAT "BAT1"
|
||||||
|
|
||||||
static const struct arg args[] = {
|
static const struct arg args[] = {
|
||||||
{ netspeed_rx, " [ %sB/s]", IFACE },
|
{ netspeed_rx, " [ %sB/s]", IFACE },
|
||||||
{ ipv4, " ^c#fb4934^[ %s]", IFACE },
|
{ netspeed_tx, " [ %sB/s]", IFACE },
|
||||||
{ battery_perc, " ^c#fe9019^[ %s%%", BAT },
|
{ ipv4, " ^c#fb4934^[ %s]", IFACE },
|
||||||
{ battery_remaining," %s]", BAT },
|
//{ battery_perc, " ^c#fe9019^[ %s%%", BAT },
|
||||||
|
//{ battery_remaining," %s]", BAT },
|
||||||
{ run_command, " ^c#8ec07c^[ %s]", "amixer sget Master | awk -F\"[][]\" '/%/ { print $2 }' | head -n1" },
|
{ run_command, " ^c#8ec07c^[ %s]", "amixer sget Master | awk -F\"[][]\" '/%/ { print $2 }' | head -n1" },
|
||||||
{ cpu_perc, " ^c#b8bb26^[%s%%]", NULL },
|
{ cpu_perc, " ^c#b8bb26^[%s%%]", NULL },
|
||||||
{ ram_used, " ^c#d3869b^[ %s]", NULL },
|
{ ram_used, " ^c#d3869b^[ %s]", NULL },
|
||||||
@ -72,4 +73,3 @@ static const struct arg args[] = {
|
|||||||
{ datetime, " ^c#ebdbb2^[ %s]", "%H:%M:%S" },
|
{ datetime, " ^c#ebdbb2^[ %s]", "%H:%M:%S" },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ CFLAGS = -std=c99 -pedantic -Wall -Wextra -Wno-unused-parameter -Os
|
|||||||
LDFLAGS = -L$(X11LIB) -s
|
LDFLAGS = -L$(X11LIB) -s
|
||||||
# OpenBSD: add -lsndio
|
# OpenBSD: add -lsndio
|
||||||
# FreeBSD: add -lkvm -lsndio
|
# FreeBSD: add -lkvm -lsndio
|
||||||
LDLIBS = -lX11 -lkvm -lsndio
|
LDLIBS = -lX11
|
||||||
|
|
||||||
# compiler and linker
|
# compiler and linker
|
||||||
CC = cc
|
CC = cc
|
||||||
|
Reference in New Issue
Block a user