Update blocks.def.h
This commit is contained in:
parent
a8d9901a57
commit
81dcef14c4
18
blocks.def.h
18
blocks.def.h
@ -1,11 +1,15 @@
|
||||
//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*/
|
||||
{"Mem:", "free -h | awk '/^Mem/ { print $3\"/\"$2 }' | sed s/i//g", 30, 0},
|
||||
// utility macros
|
||||
#define SECONDS(n) (n * 1000)
|
||||
|
||||
{"", "date '+%b %d (%a) %I:%M%p'", 5, 0},
|
||||
static const Block blocks[] = {
|
||||
/*Icon*/ /*Command*/ /*Update Interval*/ /*Update Signal*/
|
||||
{"", "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;
|
||||
|
Loading…
Reference in New Issue
Block a user