X-Git-Url: https://git.armaanb.net/?a=blobdiff_plain;f=config.h;h=0a2239a01c4f3ec8dca08421a13744080329d56a;hb=68c61172798a7885e095b43c6cdaa2837eb4f6e7;hp=bb4903aa239f22850f691b60970d7cae0a8f6194;hpb=01acd7ea5ada0982e67e8cfbbc118d52521c4252;p=dwmblocks.git diff --git a/config.h b/config.h index bb4903a..0a2239a 100644 --- a/config.h +++ b/config.h @@ -1,11 +1,7 @@ static const Block blocks[] = { // - {"[BAT: ", "awk '{print $1 \"%]\"}' /sys/class/power_supply/BAT0/capacity ", 15, 0}, - {"[VOL: ", "amixer sget Master | awk -F'[][]' '/dB/ { print $2 \", \" $6 \"]\"}'", 15, 10}, - {"[DAT: ", "date '+%A %Y-%m-%d %I:%M:%S %p]'", 1, 0}, + {"[", "cat /sys/class/power_supply/BAT0/capacity", 15, 0}, + {"%, ", "awk '{print tolower($0)}' /sys/class/power_supply/BAT0/status", 15, 9}, + {"] [", "amixer sget Master | awk -F'[][]' '/dB/ {print $2 \", \" $6}'", 15, 10}, + {"] [", "date '+%A %Y-%m-%d %I:%M %p]'", 15, 0}, }; - -/* sets delimeter between status commands. NULL character ('\0') means - * no delimeter. */ -static char delim[] = " "; -static unsigned int delimLen = 1;