Update blocks.def.h

This commit is contained in:
Alexander Rosenberg 2023-02-21 14:13:55 -08:00
parent a8d9901a57
commit 81dcef14c4
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

View File

@ -1,11 +1,15 @@
//Modify this file to change what commands output to your statusbar, and recompile using the make command.
// utility macros
#define SECONDS(n) (n * 1000)
static const Block blocks[] = {
/*Icon*/ /*Command*/ /*Update Interval*/ /*Update Signal*/
{"Mem:", "free -h | awk '/^Mem/ { print $3\"/\"$2 }' | sed s/i//g", 30, 0},
{"", "date '+%b %d (%a) %I:%M%p'", 5, 0},
{"", "dwmblocks-battery", SECONDS(10), 0},
{"", "dwmblocks-volume", 125, 0},
{"", "date +'%a %b %d'", SECONDS(30), 0},
{"", "date +'%R'", SECONDS(2), 0},
{"", "dwmblocks-network", SECONDS(5), 0},
};
//sets delimeter between status commands. NULL character ('\0') means no delimeter.
static char delim[] = " | ";
// sets delimeter between status commands. NULL character ('\0') means no delimeter.
static char delim[] = " ";
static unsigned int delimLen = 5;