2023-02-21 14:13:55 -08:00
|
|
|
// utility macros
|
|
|
|
#define SECONDS(n) (n * 1000)
|
2023-02-21 12:15:57 -08:00
|
|
|
|
2023-02-21 14:13:55 -08:00
|
|
|
static const Block blocks[] = {
|
|
|
|
/*Icon*/ /*Command*/ /*Update Interval*/ /*Update Signal*/
|
|
|
|
{"", "dwmblocks-battery", SECONDS(10), 0},
|
2023-02-23 09:22:54 -08:00
|
|
|
{"", "dwmblocks-volume", 0, 1},
|
2023-02-21 14:13:55 -08:00
|
|
|
{" ", "date +'%a %b %d'", SECONDS(30), 0},
|
|
|
|
{" ", "date +'%R'", SECONDS(2), 0},
|
|
|
|
{"", "dwmblocks-network", SECONDS(5), 0},
|
2023-02-21 12:15:57 -08:00
|
|
|
};
|
|
|
|
|
2023-02-21 14:13:55 -08:00
|
|
|
// sets delimeter between status commands. NULL character ('\0') means no delimeter.
|
|
|
|
static char delim[] = " ";
|
2023-02-21 12:15:57 -08:00
|
|
|
static unsigned int delimLen = 5;
|