feat: Add support for block-specific icons
Icons can now be specified on a per-block basis. Closes #64.
This commit is contained in:
parent
8ebe985db8
commit
fe538a7a2f
6 changed files with 24 additions and 19 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue