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
parent 8ebe985db8
commit fe538a7a2f
6 changed files with 24 additions and 19 deletions

View File

@@ -13,9 +13,10 @@
#include "config.h"
#include "util.h"
block block_new(const char *const command, const unsigned int interval,
const int signal) {
block block_new(const char *const icon, const char *const command,
const unsigned int interval, const int signal) {
block block = {
.icon = icon,
.command = command,
.interval = interval,
.signal = signal,