Reorganize code and remove hack for empty block outputs

This commit is contained in:
Utkarsh Verma
2023-03-25 21:38:05 +05:30
parent f6a5fa6480
commit 8dd9bc6a7d
17 changed files with 531 additions and 362 deletions

21
config.c Normal file
View File

@@ -0,0 +1,21 @@
#include "config.h"
#include "block.h"
#include "util.h"
// clang-format off
Block blocks[] = {
{"sb-mail", 600 , 1 },
{"sb-music", 0, 2 },
{"sb-disk", 1800, 3 },
{"sb-memory", 10, 4 },
{"sb-loadavg", 5, 5 },
{"sb-mic", 0, 6 },
{"sb-record", 0, 7 },
{"sb-volume", 0, 8 },
{"sb-battery", 5, 9 },
{"sb-date", 1, 10},
};
// clang-format on
const unsigned short blockCount = LEN(blocks);