summaryrefslogtreecommitdiff
path: root/include/swaybar/config.h
diff options
context:
space:
mode:
authorBrian Ashworth <[email protected]>2019-09-02 21:41:11 -0400
committerDrew DeVault <[email protected]>2019-09-04 16:48:50 -1000
commit1fd2c6ba498e61f4fe823bf552f9d2fce8612de4 (patch)
tree8e2d9adab3451f1f05c76340d466a442c840e558 /include/swaybar/config.h
parent187306640ba8f2ab2f246a5030617ee985cf9223 (diff)
swaybar: complete barconfig_update event handling
This adds complete support for the barconfig_update ipc event. This also changes the bar command and subcommand handlers to correctly emit the event. This makes it so all bar subcommands other than id and swaybar_command are dynamically changeable at runtime. sway-bar.5 has been updated accordingly
Diffstat (limited to 'include/swaybar/config.h')
-rw-r--r--include/swaybar/config.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/swaybar/config.h b/include/swaybar/config.h
index ec042e51..688fa2d7 100644
--- a/include/swaybar/config.h
+++ b/include/swaybar/config.h
@@ -16,7 +16,6 @@ struct box_colors {
struct config_output {
struct wl_list link; // swaybar_config::outputs
char *name;
- size_t index;
};
struct swaybar_binding {
@@ -41,7 +40,6 @@ struct swaybar_config {
bool workspace_buttons;
list_t *bindings;
struct wl_list outputs; // config_output::link
- bool all_outputs;
int height;
int status_padding;
int status_edge_padding;
@@ -83,10 +81,13 @@ struct tray_binding {
char *command;
struct wl_list link; // struct tray_binding::link
};
+
+void free_tray_binding(struct tray_binding *binding);
#endif
struct swaybar_config *init_config(void);
void free_config(struct swaybar_config *config);
uint32_t parse_position(const char *position);
+void free_binding(struct swaybar_binding *binding);
#endif