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

@ -9,6 +9,7 @@
#include "util.h"
typedef struct {
const char *const icon;
const char *const command;
const unsigned int interval;
const int signal;
@ -18,8 +19,8 @@ typedef struct {
pid_t fork_pid;
} block;
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);
int block_init(block *const block);
int block_deinit(block *const block);
int block_execute(block *const block, const uint8_t button);