commit 0923a1296f40894c00d8e77cb5203cf6f70a0a2b
parent 9426be3d7059e0febbc083c8724b46b826f45cc0
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Wed, 27 May 2020 08:41:21 +0200
Add own configuration
Diffstat:
1 file changed, 21 insertions(+), 0 deletions(-)
diff --git a/config.h b/config.h
@@ -0,0 +1,21 @@
+/* delay between each update in seconds */
+int delay = 1;
+
+#define SEP "|"
+
+struct ent ents[] = {
+ /* reorder/edit/remove these as you see fit */
+ { .fmt = "%s", .read = fileexists, .arg = "/tmp/screenrecord.pid" },
+ { .fmt = "%s", .read = fileexists, .arg = "/tmp/adcast.pid" },
+ { .fmt = " %s "SEP, .read = mpdread, .arg = &(struct mpdarg){ .host = NULL, .port = 0 } },
+ { .fmt = "%s", .read = countread, .arg = "/home/ad/.mail/adamsgaard/INBOX/new" },
+ { .fmt = " %s "SEP, .read = xkblayoutread, .arg = NULL },
+ { .fmt = " vol %s "SEP, .read = mixread, .arg = NULL },
+ /*{ .fmt = "[%s] ", .read = cpuread, .arg = "/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq" },*/
+ { .fmt = " %s°C", .read = tempread, .arg = "/sys/class/hwmon/hwmon1/temp1_input" },
+ { .fmt = " %s "SEP, .read = loadread, .arg = NULL },
+ { .fmt = " %s "SEP, .read = battread, .arg = &(struct battarg){ .cap = "/sys/class/power_supply/BAT0/capacity", .ac = "/sys/class/power_supply/AC/online" } },
+ /*{ .fmt = "%s ", .read = fileread, .arg = "/etc/myname" },*/
+ { .fmt = " %s "SEP, .read = wifiread, .arg = NULL },
+ { .fmt = " %s", .read = dateread, .arg = &(struct datearg){ .fmt = "%Y-%m-%d %a %H:%M:%S %Z", .tz = NULL } },
+};