From 413d66e71956da86f49632a51d350a8ae8ce7ddd Mon Sep 17 00:00:00 2001 From: memL0rz Date: Thu, 5 Dec 2024 14:22:05 +0000 Subject: [PATCH] kekl --- components/wg.sh | 3 +-- config.def.h | 20 ++++++++++---------- config.mk | 4 ++-- 3 files changed, 13 insertions(+), 14 deletions(-) diff --git a/components/wg.sh b/components/wg.sh index d84caf2..ad1fdec 100644 --- a/components/wg.sh +++ b/components/wg.sh @@ -5,6 +5,5 @@ fi server=$(echo "$response" | jq -r '.mullvad_exit_ip_hostname') if [ "$server" != "null" ]; then echo "$server" -else - echo "NULL" fi + diff --git a/config.def.h b/config.def.h index 82026a8..905a1ee 100755 --- a/config.def.h +++ b/config.def.h @@ -3,22 +3,22 @@ static const char unknown_str[] = "?"; #define MAXLEN 2048 -#define IFACE "wifibox0" +#define IFACE "enp6s0" #define BAT "BAT1" static const struct arg args[] = { { netspeed_rx, " [ %sB/s]", IFACE }, - { netspeed_tx, " [ %sB/s]", IFACE }, - //{ ipv4, " ^c#fb4934^[ %s]", IFACE }, - { run_command, " ^c#fb4934^[%s]", "sh /opt/suckless/slstatus/components/wg.sh" }, - //{ mullvad_stat, " [VPN: %s]", NULL}, + { netspeed_tx, " [ %sB/s]", IFACE }, + { ipv4, " ^c#fb4934^[ %s]", IFACE }, + { run_command, " ^c#fb4934^[%s]", "sh /opt/suckless/slstatus/components/wg.sh" }, + { mullvad_stat, " [VPN: %s]", NULL}, - { battery_perc, " ^c#fe9019^[ %s%%", BAT }, - { 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" }, - { vol_perc, " ^c#8ec07c^[ %s]", NULL }, - { cpu_perc, " ^c#b8bb26^[%s%%]", NULL }, + { run_command, " ^c#8ec07c^[ %s]", "amixer sget Master | awk -F\"[][]\" '/%/ { print $2 }' | head -n1" }, + // { vol_perc, " ^c#8ec07c^[ %s]", NULL }, + { cpu_perc, " ^c#b8bb26^[%s%%]", NULL }, { ram_used, " ^c#d3869b^[ %s]", NULL }, { datetime, " ^c#ebdbb2^[ %s]", "%H:%M:%S" }, }; diff --git a/config.mk b/config.mk index a4ffdbd..330f088 100755 --- a/config.mk +++ b/config.mk @@ -4,7 +4,7 @@ VERSION = 1.0 # customize below to fit your system # paths -PREFIX = /usr/local +PREFIX = /usr MANPREFIX = $(PREFIX)/share/man X11INC = ${PREFIX}/include @@ -16,7 +16,7 @@ CFLAGS = -std=c99 -pedantic -Wall -Wextra -Wno-unused-parameter -Os LDFLAGS = -L$(X11LIB) -s # OpenBSD: add -lsndio # FreeBSD: add -lkvm -lsndio -LDLIBS = -lX11 -lkvm -lsndio +LDLIBS = -lX11 # compiler and linker CC = cc