forked from torrinfail/dwmblocks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblocks.h
17 lines (15 loc) · 1009 Bytes
/
blocks.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//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*/
{" [ VLM: ", "printf %3s \"$(pamixer --get-volume-human)\"; echo \" ]\"", 1, 1},
{"[ TME: ", "echo \"$(date '+%k:%M %d.%m.%Y') ]\"", 1, 0},
{"[ CPU: ", "echo \"$(cat /run/cpustatsd/load)% ]\"", 1, 0},
{"[ CLK: ", "echo \"$(cat /run/cpustatsd/maxclk)MHz | $(cat /run/cpustatsd/minclk)MHz ]\"", 1, 0},
{"[ MEM: ", "echo \"$(free -h | awk '/^Mem/ { print $3\"/\"$2 }' | sed s/i//g) ]\"", 1, 0},
{"[ PWR: ", "echo \"$(cat /run/cpustatsd/corpwr)W | $(cat /run/cpustatsd/pkgpwr)W ]\"", 1, 0},
{";", "", 86400, 0}, /* dwm-extrabar delimeter */
{";", "", 86400, 0}, /* dwm-extrabar delimeter */
};
//sets delimeter between status commands. NULL character ('\0') means no delimeter.
static char delim[] = " ";
static unsigned int delimLen = 5;