aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorOrestis Floros <orestisflo@gmail.com>2023-01-22 18:34:14 +0100
committerOrestis Floros <orestisflo@gmail.com>2023-01-22 18:59:58 +0100
commitba1f40f45fc03b279f55adcb4f7e00e38d78ba0e (patch)
tree34b2dfb64a0cacc94255b6a71f79643160dd3508 /include
parentc52f13900df5da04d86809abbfe25178a4bbe305 (diff)
downloadi3-ba1f40f45fc03b279f55adcb4f7e00e38d78ba0e.tar.gz
i3-ba1f40f45fc03b279f55adcb4f7e00e38d78ba0e.zip
i3bar: Add protocol for workspace buttons
Closes #3818 (parent issue) Fixes #1808 Fixes #2333 Fixes #2617 Fixes #3548
Diffstat (limited to 'include')
-rw-r--r--include/config_directives.h1
-rw-r--r--include/configuration.h4
2 files changed, 5 insertions, 0 deletions
diff --git a/include/config_directives.h b/include/config_directives.h
index 600226e9..f910d591 100644
--- a/include/config_directives.h
+++ b/include/config_directives.h
@@ -105,6 +105,7 @@ CFGFUN(bar_tray_output, const char *output);
CFGFUN(bar_tray_padding, const long spacing_px);
CFGFUN(bar_color_single, const char *colorclass, const char *color);
CFGFUN(bar_status_command, const char *command);
+CFGFUN(bar_workspace_command, const char *command);
CFGFUN(bar_binding_mode_indicator, const char *value);
CFGFUN(bar_workspace_buttons, const char *value);
CFGFUN(bar_workspace_min_width, const long width);
diff --git a/include/configuration.h b/include/configuration.h
index 99f4b64e..19d2f714 100644
--- a/include/configuration.h
+++ b/include/configuration.h
@@ -335,6 +335,10 @@ struct Barconfig {
* Will be passed to the shell. */
char *status_command;
+ /** Command that should be run to get the workspace buttons. Will be passed
+ * to the shell. */
+ char *workspace_command;
+
/** Font specification for all text rendered on the bar. */
char *font;