aboutsummaryrefslogtreecommitdiff
path: root/include/swaybar
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-10-10 17:07:02 +0200
committerGitHub <noreply@github.com>2018-10-10 17:07:02 +0200
commit0a36d14d7a694a88580da1d9b83837afe608a2eb (patch)
treee21f0b633212c6b8084348f08fc68cec2efece8b /include/swaybar
parent782ed19bc30378126f44272c1e46f2a05a9b2db1 (diff)
parentcd6917d4a821fe904a2c242dff673967aa3ad4b2 (diff)
Merge pull request #2798 from RedSoxFan/bar-bindsym
Implement bar bindsym
Diffstat (limited to 'include/swaybar')
-rw-r--r--include/swaybar/config.h8
-rw-r--r--include/swaybar/ipc.h1
2 files changed, 9 insertions, 0 deletions
diff --git a/include/swaybar/config.h b/include/swaybar/config.h
index 5f5688cf..d0336c27 100644
--- a/include/swaybar/config.h
+++ b/include/swaybar/config.h
@@ -3,6 +3,7 @@
#include <stdbool.h>
#include <stdint.h>
#include <wayland-client.h>
+#include "list.h"
#include "util.h"
struct box_colors {
@@ -17,6 +18,12 @@ struct config_output {
size_t index;
};
+struct swaybar_binding {
+ uint32_t button;
+ char *command;
+ bool release;
+};
+
struct swaybar_config {
char *status_command;
bool pango_markup;
@@ -29,6 +36,7 @@ struct swaybar_config {
bool binding_mode_indicator;
bool wrap_scroll;
bool workspace_buttons;
+ list_t *bindings;
struct wl_list outputs; // config_output::link
bool all_outputs;
int height;
diff --git a/include/swaybar/ipc.h b/include/swaybar/ipc.h
index 81e48a6b..8731dac2 100644
--- a/include/swaybar/ipc.h
+++ b/include/swaybar/ipc.h
@@ -7,5 +7,6 @@ bool ipc_initialize(struct swaybar *bar, const char *bar_id);
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);
+void ipc_execute_binding(struct swaybar *bar, struct swaybar_binding *bind);
#endif