This commit is contained in:
Dmitry Zakharchenko 2023-05-01 06:44:07 +03:00
parent 28d7e79d47
commit ef12a93743
2 changed files with 9 additions and 7 deletions

View file

@ -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;

View file

@ -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]);
}