]> git.armaanb.net Git - dwmblocks.git/blob - blocks.h
Made dwmblocks way more efficient by only setting the name of the root window when...
[dwmblocks.git] / blocks.h
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         {"", "cat ~/.pacupdate | sed /📦0/d",                                 0,              9},
5         
6         {"🧠", "free -h | awk '/^Mem/ { print $3\"/\"$2 }' | sed s/i//g",     30,             0},
7
8         {"", "~/bin/statusbar/volume",                                          0,              10},
9
10         {"☀", "xbacklight | sed 's/\\..*//'",                                 0,              11},
11         
12         {"", "~/bin/statusbar/battery",                                         5,              0},
13
14         {"🌡", "sensors | awk '/^temp1:/{print $2}'",                         5,              0},
15
16         {"", "~/bin/statusbar/clock",                                           5,              0},
17 };
18
19 //sets delimeter between status commands. NULL character ('\0') means no delimeter.
20 static char delim = '|';