summaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorozpv <39195175+ozpv@users.noreply.github.com>2024-07-26 23:42:07 +0000
committerGitHub <noreply@github.com>2024-07-26 23:42:07 +0000
commit1b83e692c4415e015bf6f51f2a3d0c827ff6e296 (patch)
tree528677e628b3fd844181f0e372f8f094148f3a1c /config.def.h
parent9e533dcb56f3d34a85b5ba7f279c2870ebcc4034 (diff)
add battery component
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
new file mode 100644
index 0000000..904bcba
--- /dev/null
+++ b/config.def.h
@@ -0,0 +1,21 @@
+/* See LICENSE file for copyright and license details. */
+
+/* interval between updates (in ms) */
+const unsigned int interval = 1000;
+
+/* text to show if no value can be retrieved */
+static const char unknown_str[] = "n/a";
+
+/* maximum output string length */
+#define MAXLEN 2048
+
+static const struct arg args[] = {
+ /* function format argument */
+
+ /* run nmcli to get network device for say ethernet */
+ { netspeed_rx, "[ %s B/s ]", "wlp2s0" },
+ { battery_perc,"[  %s%% ]", "BAT0" },
+ { run_command, "[ %s ]", "volume" },
+ { ram_perc, "[  %s%% ]", NULL },
+ { datetime, "  %s", "%a %b %d %r" },
+};