commit 1870c019395b7aa8daabef4e94062a28836a3619
parent c15552b1b47ec1131ebea1519f780b429869d482
Author: mms <michal@sapka.me>
Date: Sun, 6 Aug 2023 22:47:02 +0200
feat: battery and time
Diffstat:
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.gitignore b/.gitignore
@@ -1,5 +1,5 @@
# Custom blocks file
-blocks.h
+#blocks.h
# Prerequisites
*.d
diff --git a/blocks.h b/blocks.h
@@ -0,0 +1,10 @@
+//Modify this file to change what commands output to your statusbar, and recompile using the make command.
+static const Block blocks[] = {
+ /*Icon*/ /*Command*/ /*Update Interval*/ /*Update Signal*/
+ {"Bat: ", "sysctl hw.acpi.battery.life | awk '{print $NF'}", 30, 0},
+ {"", "date", 30, 0},
+};
+
+//sets delimeter between status commands. NULL character ('\0') means no delimeter.
+static char delim[] = " | ";
+static unsigned int delimLen = 5;