diff --git a/README.md b/README.md index 3fc2d6b..7516afc 100644 --- a/README.md +++ b/README.md @@ -78,8 +78,8 @@ The syntax for defining a block is: ```c const Block blocks[] = { ... - BLOCK("volume", 0, 5) - BLOCK("date", 1800, 1) + BLOCK("volume", 0, 5), + BLOCK("date", 1800, 1), ... } ``` diff --git a/config.h b/config.h index e45f2e7..c8daf43 100644 --- a/config.h +++ b/config.h @@ -3,14 +3,14 @@ #define CLICKABLE_BLOCKS const Block blocks[] = { - BLOCK("sb-mail", 1800, 17) - BLOCK("sb-music", 0, 18) - BLOCK("sb-disk", 1800, 19) - BLOCK("sb-memory", 10, 20) - BLOCK("sb-loadavg", 5, 21) - BLOCK("sb-mic", 0, 26) - BLOCK("sb-volume", 0, 22) - BLOCK("sb-battery", 5, 23) - BLOCK("sb-date", 1, 24) - // BLOCK("sb-network", 5, 25) + BLOCK("sb-mail", 1800, 17), + BLOCK("sb-music", 0, 18), + BLOCK("sb-disk", 1800, 19), + BLOCK("sb-memory", 10, 20), + BLOCK("sb-loadavg", 5, 21), + BLOCK("sb-mic", 0, 26), + BLOCK("sb-volume", 0, 22), + BLOCK("sb-battery", 5, 23), + BLOCK("sb-date", 1, 24), + // BLOCK("sb-network", 5, 25), }; diff --git a/main.c b/main.c index 419d733..d255e7d 100644 --- a/main.c +++ b/main.c @@ -12,7 +12,7 @@ #define POLL_INTERVAL 50 #define LEN(arr) (sizeof(arr) / sizeof(arr[0])) -#define BLOCK(cmd, interval, signal) {"echo \"$(" cmd ")\"", interval, signal}, +#define BLOCK(cmd, interval, signal) {"echo \"$(" cmd ")\"", interval, signal} typedef struct { const char* command; const unsigned int interval;