From a1943c32cc50526e7065c6a147cf91efd01831a7 Mon Sep 17 00:00:00 2001 From: Sheldon Lee Date: Fri, 4 Aug 2023 16:46:53 +0100 Subject: [PATCH] Update config --- config.h | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/config.h b/config.h index 175017b..b537d9c 100644 --- a/config.h +++ b/config.h @@ -14,16 +14,17 @@ static const char unknown_str[] = "n/a"; * * battery_perc battery percentage battery name (BAT0) * NULL on OpenBSD/FreeBSD - * battery_state battery charging state battery name (BAT0) - * NULL on OpenBSD/FreeBSD * battery_remaining battery remaining HH:MM battery name (BAT0) * NULL on OpenBSD/FreeBSD - * cpu_perc cpu usage in percent NULL + * battery_state battery charging state battery name (BAT0) + * NULL on OpenBSD/FreeBSD + * cat read arbitrary file path * cpu_freq cpu frequency in MHz NULL + * cpu_perc cpu usage in percent NULL * datetime date and time format string (%F %T) * disk_free free disk space in GB mountpoint path (/) * disk_perc disk usage in percent mountpoint path (/) - * disk_total total disk space in GB mountpoint path (/") + * disk_total total disk space in GB mountpoint path (/) * disk_used used disk space in GB mountpoint path (/) * entropy available entropy NULL * gid GID of current user NULL @@ -45,7 +46,6 @@ static const char unknown_str[] = "n/a"; * ram_total total memory size in GB NULL * ram_used used memory in GB NULL * run_command custom shell command command (echo foo) - * separator string to echo NULL * swap_free free swap in GB NULL * swap_perc swap usage in percent NULL * swap_total total swap size in GB NULL @@ -59,13 +59,16 @@ static const char unknown_str[] = "n/a"; * uptime system uptime NULL * username username of current user NULL * vol_perc OSS/ALSA volume in percent mixer file (/dev/mixer) - * NULL on OpenBSD - * wifi_perc WiFi signal in percent interface name (wlan0) + * NULL on OpenBSD/FreeBSD * wifi_essid WiFi ESSID interface name (wlan0) + * wifi_perc WiFi signal in percent interface name (wlan0) */ static const struct arg args[] = { - /* function format argument */ - { cpu_perc, " CPU: %s% | ", NULL }, - { ram_perc, "RAM: %s% | ", NULL }, - { datetime, "%s ", "%F %T" }, + /* function format argument */ + { cpu_perc, " CPU: %s% | ", NULL }, + { ram_perc, "RAM: %s%, ", NULL }, + { ram_used, "%s | ", NULL }, + { netspeed_rx, "NET r:%s, ", "eno2" }, + { netspeed_tx, "t:%s | ", "eno2" }, + { datetime, "%s ", "%F %T" }, };