Pi66

sta
minimal & simple status monitoring app.
git clone https://git.pi66.xyz/sta

← back to log

refactor: simplify config.def.h

author: pi66
date: 2026-04-28 23:02
hash: c83a5c7e625bcd79bd952640820cb6276ea81c7b

Diffstat:

M

config.def.h
7 +++++++++---------------------
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
diff --git a/config.def.h b/config.def.h
index f385dc4..f77e1c3 100644
--- a/config.def.h
+++ b/config.def.h
@@ -58,9 +58,6 @@
  */

 static const Args commands[] = {
-    {battery_state, " %s "     , "BAT1", 2, 1000},
-    {battery_perc , "   %s%% │", "BAT1", 3, 1000},
-   {disk_perc    , "   %s%% │", "/home/", 4, 60*1000},
-   {wifi_essid   , "   %s │" , "wlan0", 5, 60*1000},
-   {run_command  , " %s "     , "date '+%H:%M %b %d'", 8, 60*1000},
+   /* function     format       argument    id    delay(ms)  */
+   { datetime,       "%s",      "%F %T",    1,    1000},
 };