blocks.h 582 B

1234567891011121314
  1. //Modify this file to change what commands output to your statusbar, and recompile using the make command.
  2. static const Block blocks[] = {
  3. /*Icon*/ /*Command*/ /*Update Interval*/ /*Update Signal*/
  4. {" ", "free -h | awk '/^Mem/ { print $3\"/\"$2 }' | sed s/i//g", 30, 0},
  5. {"", "get-volume", 1, 1},
  6. {"", "battery", 15, 0},
  7. {"", "internet", 5, 3},
  8. {"", "brightness", 0, 2},
  9. {"", "get-date", 5, 0},
  10. };
  11. //sets delimeter between status commands. NULL character ('\0') means no delimeter.
  12. static char delim[] = " | ";
  13. static unsigned int delimLen = 5;