feat: Add support for block-specific icons
Icons can now be specified on a per-block basis. Closes #64.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user