]> git.armaanb.net Git - dwmblocks.git/blob - config.h
bb4903aa239f22850f691b60970d7cae0a8f6194
[dwmblocks.git] / config.h
1 static const Block blocks[] = {
2         // <Icon> <Command> <Update> <Interval> <Update> <Signal>
3         {"[BAT: ", "awk '{print $1 \"%]\"}' /sys/class/power_supply/BAT0/capacity ", 15, 0},
4         {"[VOL: ", "amixer sget Master | awk -F'[][]' '/dB/ { print $2 \", \" $6 \"]\"}'", 15, 10},
5         {"[DAT: ", "date '+%A %Y-%m-%d %I:%M:%S %p]'", 1, 0},
6 };
7
8 /* sets delimeter between status commands. NULL character ('\0') means
9  * no delimeter. */
10 static char delim[] = " ";
11 static unsigned int delimLen = 1;