Render i3bar blocks

This commit is contained in:
Drew DeVault 2018-03-31 14:39:18 -04:00
parent ee85c91831
commit 333dbcbe72
7 changed files with 314 additions and 34 deletions

View file

@ -4,7 +4,7 @@
#include "swaybar/bar.h"
void ipc_initialize(struct swaybar *bar, const char *bar_id);
bool handle_ipc_event(struct swaybar *bar);
bool handle_ipc_readable(struct swaybar *bar);
void ipc_get_workspaces(struct swaybar *bar);
void ipc_send_workspace_command(struct swaybar *bar, const char *ws);

View file

@ -38,7 +38,7 @@ struct i3bar_block {
struct wl_list link;
char *full_text, *short_text, *align;
bool urgent;
uint32_t color;
uint32_t *color;
int min_width;
char *name, *instance;
bool separator;
@ -68,8 +68,8 @@ struct status_line {
struct status_line *status_line_init(char *cmd);
void status_line_free(struct status_line *status);
bool handle_status_readable(struct status_line *status);
int i3bar_readable(struct status_line *status);
bool status_handle_readable(struct status_line *status);
bool i3bar_handle_readable(struct status_line *status);
void status_error(struct status_line *status, const char *text);
#endif