]> git.armaanb.net Git - dwmblocks.git/blobdiff - config.h
Add customizations
[dwmblocks.git] / config.h
diff --git a/config.h b/config.h
new file mode 100644 (file)
index 0000000..bb4903a
--- /dev/null
+++ b/config.h
@@ -0,0 +1,11 @@
+static const Block blocks[] = {
+       // <Icon> <Command> <Update> <Interval> <Update> <Signal>
+       {"[BAT: ", "awk '{print $1 \"%]\"}' /sys/class/power_supply/BAT0/capacity ", 15, 0},
+       {"[VOL: ", "amixer sget Master | awk -F'[][]' '/dB/ { print $2 \", \" $6 \"]\"}'", 15, 10},
+       {"[DAT: ", "date '+%A %Y-%m-%d %I:%M:%S %p]'", 1, 0},
+};
+
+/* sets delimeter between status commands. NULL character ('\0') means
+ * no delimeter. */
+static char delim[] = " ";
+static unsigned int delimLen = 1;