change
This commit is contained in:
parent
28d7e79d47
commit
ef12a93743
2 changed files with 9 additions and 7 deletions
12
blocks.def.h
12
blocks.def.h
|
@ -1,11 +1,13 @@
|
|||
//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},
|
||||
|
||||
{"", "date '+%b %d (%a) %I:%M%p'", 5, 0},
|
||||
{"", "music", 0, 11},
|
||||
{"", "cpu", 40, 4},
|
||||
{"", "volume", 0, 10},
|
||||
{"", "battery", 40, 2},
|
||||
{"", "clock", 60, 1},
|
||||
};
|
||||
|
||||
//sets delimeter between status commands. NULL character ('\0') means no delimeter.
|
||||
//Sets delimiter between status commands. NULL character ('\0') means no delimiter.
|
||||
static char delim[] = " | ";
|
||||
static unsigned int delimLen = 5;
|
||||
static unsigned int delimLen = 3;
|
||||
|
|
|
@ -125,7 +125,7 @@ void pstdout()
|
|||
{
|
||||
if (!getstatus(statusstr[0], statusstr[1]))//Only write out if text has changed.
|
||||
return;
|
||||
printf("%s\n",statusstr[0]);
|
||||
printf("all status %s\n",statusstr[0]);
|
||||
fflush(stdout);
|
||||
}
|
||||
|
||||
|
@ -146,7 +146,7 @@ void psomebar()
|
|||
return;
|
||||
}
|
||||
}
|
||||
dprintf(somebarFd, "status %s\n", statusstr[0]);
|
||||
dprintf(somebarFd, "all status %s\n", statusstr[0]);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue