feat: Add support for block-specific icons

Icons can now be specified on a per-block basis. Closes #64.
This commit is contained in:
Utkarsh Verma 2024-04-20 08:49:01 +05:30
commit fe538a7a2f
No known key found for this signature in database
GPG key ID: 7A4885A7162BDF20
6 changed files with 24 additions and 19 deletions

View file

@ -128,7 +128,8 @@ int main(const int argc, const char *const argv[]) {
return 1;
}
#define BLOCK(command, interval, signal) block_new(command, interval, signal),
#define BLOCK(icon, command, interval, signal) \
block_new(icon, command, interval, signal),
block blocks[BLOCK_COUNT] = {BLOCKS(BLOCK)};
#undef BLOCK
const unsigned short block_count = LEN(blocks);