From 59a9a4fb4758375d2446267b19fcad364091438b Mon Sep 17 00:00:00 2001 From: Nathan Steel Date: Sun, 14 Nov 2021 13:55:58 +0000 Subject: [PATCH] Add custom menu items to slstatus --- config.def.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/config.def.h b/config.def.h index 93a875a..1259074 100644 --- a/config.def.h +++ b/config.def.h @@ -4,7 +4,7 @@ const unsigned int interval = 1000; /* text to show if no value can be retrieved */ -static const char unknown_str[] = "n/a"; +static const char unknown_str[] = ""; /* maximum output string length */ #define MAXLEN 2048 @@ -65,5 +65,14 @@ static const char unknown_str[] = "n/a"; */ static const struct arg args[] = { /* function format argument */ - { datetime, "%s", "%F %T" }, + { run_command, "%s ", "echo $(cat /home/nathan/recordings/.recording_status)" }, +/* { run_command, "%s ", "echo $(cat /home/nathan/vpn)" }, */ + { netspeed_tx, "%sB/s ", "wlp3s0" }, + { netspeed_rx, "%sB/s ", "wlp3s0" }, + { temp, " %sC ", "/sys/class/thermal/thermal_zone0/temp" }, + { cpu_perc, "[: %s%%] ", NULL }, + { ram_used, "[: %sB] ", NULL }, + { battery_perc, " %s%%", "BAT0" }, + { battery_state, "%s ", "BAT0" }, + { datetime, "%s", "%d/%m %R" }, };