blocks.h 777 B

123456789101112131415
  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", 10, 0},
  5. {" ", "awk '{print $0\"%\"}' /sys/class/power_supply/BAT?/capacity", 10, 0},
  6. {" ", "date +%R", 1, 0},
  7. {"糖 ", "sensors | awk '/Core 0/ { print $3 }' | sed 's/+//;s/\\.[0-9]//' ", 10, 0},
  8. {"蓼 ", "amixer sget Master|grep %|awk -F'[][]' '{ print $2 }' ", 0, 10},
  9. {" ", "xbacklight", 0, 15},
  10. };
  11. //sets delimeter between status commands. NULL character ('\0') means no delimeter.
  12. static char delim[] = " ";
  13. static unsigned int delimLen = 5;