This commit is contained in:
memL0rz
2024-12-05 14:22:05 +00:00
parent 00fcc34e5e
commit 413d66e719
3 changed files with 13 additions and 14 deletions

View File

@ -5,6 +5,5 @@ fi
server=$(echo "$response" | jq -r '.mullvad_exit_ip_hostname') server=$(echo "$response" | jq -r '.mullvad_exit_ip_hostname')
if [ "$server" != "null" ]; then if [ "$server" != "null" ]; then
echo "$server" echo "$server"
else
echo "NULL"
fi fi

View File

@ -3,22 +3,22 @@ static const char unknown_str[] = "?";
#define MAXLEN 2048 #define MAXLEN 2048
#define IFACE "wifibox0" #define IFACE "enp6s0"
#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 },
{ netspeed_tx, " [ %sB/s]", IFACE }, { netspeed_tx, " [ %sB/s]", IFACE },
//{ ipv4, " ^c#fb4934^[ %s]", IFACE }, { ipv4, " ^c#fb4934^[ %s]", IFACE },
{ run_command, " ^c#fb4934^[%s]", "sh /opt/suckless/slstatus/components/wg.sh" }, { run_command, " ^c#fb4934^[%s]", "sh /opt/suckless/slstatus/components/wg.sh" },
//{ mullvad_stat, " [VPN: %s]", NULL}, { mullvad_stat, " [VPN: %s]", NULL},
{ battery_perc, " ^c#fe9019^[ %s%%", BAT }, //{ battery_perc, " ^c#fe9019^[ %s%%", BAT },
{ battery_remaining," %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" },
{ vol_perc, " ^c#8ec07c^[ %s]", NULL }, // { vol_perc, " ^c#8ec07c^[ %s]", NULL },
{ cpu_perc, " ^c#b8bb26^[%s%%]", NULL }, { cpu_perc, " ^c#b8bb26^[%s%%]", NULL },
{ ram_used, " ^c#d3869b^[ %s]", NULL }, { ram_used, " ^c#d3869b^[ %s]", NULL },
{ datetime, " ^c#ebdbb2^[ %s]", "%H:%M:%S" }, { datetime, " ^c#ebdbb2^[ %s]", "%H:%M:%S" },
}; };

View File

@ -4,7 +4,7 @@ VERSION = 1.0
# customize below to fit your system # customize below to fit your system
# paths # paths
PREFIX = /usr/local PREFIX = /usr
MANPREFIX = $(PREFIX)/share/man MANPREFIX = $(PREFIX)/share/man
X11INC = ${PREFIX}/include X11INC = ${PREFIX}/include
@ -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