dwmblocks

git clone git://mattcarlson.org/repos/dwmblocks.git
Log | Files | Refs

config.h (496B)


      1 // dwmblocks
      2 
      3 // cmd length
      4 #define CMDLENGTH 25
      5 
      6 // delimiter
      7 #define DELIMITER " | "
      8 
      9 // block
     10 typedef struct {
     11 	char* command;
     12 	unsigned int interval;
     13 	unsigned int signal;
     14 	char output[CMDLENGTH];
     15 	int pipe[2];
     16 } Block;
     17 
     18 // blocks
     19 static Block blocks[] = {
     20     {"pkgs.sh",    1, 1},
     21     {"mail.sh",    1, 2},
     22     {"torr.sh",    1, 3},
     23     {"net.sh",     1, 4},
     24     {"vol.sh",     1, 5},
     25     {"light.sh",   1, 6},
     26     {"bat.sh",     1, 7},
     27     {"time.sh",    1, 8},
     28     {"date.sh",    1, 9}};