From 9fdbb5e4a566cd2779ee88bd72028d2c3bacd689 Mon Sep 17 00:00:00 2001 From: meml0rz Date: Mon, 25 Nov 2024 03:39:07 +0100 Subject: [PATCH] freebsd --- config.def.h | 17 ++++++++--------- config.mk | 4 ++-- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/config.def.h b/config.def.h index 9a10675..31c1da3 100755 --- a/config.def.h +++ b/config.def.h @@ -3,24 +3,23 @@ static const char unknown_str[] = "?"; #define MAXLEN 2048 -#define IFACE "enp4s0" +#define IFACE "wlan0" #define BAT "BAT1" static const struct arg args[] = { { netspeed_rx, " [ %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" }, - { mullvad_stat, " [VPN: %s]", NULL}, + //{ 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 }, + //{ 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 }, - { disk_free, " ^c#fe8019^[ %s]", "/" }, + { ram_used, " ^c#d3869b^[ %s]", NULL }, { datetime, " ^c#ebdbb2^[ %s]", "%H:%M:%S" }, }; diff --git a/config.mk b/config.mk index 330f088..a4ffdbd 100755 --- a/config.mk +++ b/config.mk @@ -4,7 +4,7 @@ VERSION = 1.0 # customize below to fit your system # paths -PREFIX = /usr +PREFIX = /usr/local 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 +LDLIBS = -lX11 -lkvm -lsndio # compiler and linker CC = cc