aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTarmack <git@tarmack.eu>2020-10-03 15:45:26 +0200
committerSimon Ser <contact@emersion.fr>2020-10-11 19:12:42 +0200
commit989123a2a5933367e5c7c39c3793f4814e026bf1 (patch)
tree8a13986177a3380b3d3c965ceb2526e6ceb9c88d /include
parent657587964e5d8e444ac64829a0aab309c25ff50f (diff)
downloadsway-989123a2a5933367e5c7c39c3793f4814e026bf1.tar.xz
Add support for workspace_min_width bar option.
Diffstat (limited to 'include')
-rw-r--r--include/sway/commands.h1
-rw-r--r--include/sway/config.h1
-rw-r--r--include/swaybar/config.h1
3 files changed, 3 insertions, 0 deletions
diff --git a/include/sway/commands.h b/include/sway/commands.h
index 07730f98..f549626b 100644
--- a/include/sway/commands.h
+++ b/include/sway/commands.h
@@ -228,6 +228,7 @@ sway_cmd bar_cmd_unbindcode;
sway_cmd bar_cmd_unbindsym;
sway_cmd bar_cmd_wrap_scroll;
sway_cmd bar_cmd_workspace_buttons;
+sway_cmd bar_cmd_workspace_min_width;
sway_cmd bar_colors_cmd_active_workspace;
sway_cmd bar_colors_cmd_background;
diff --git a/include/sway/config.h b/include/sway/config.h
index 5ad240d3..ee1852d4 100644
--- a/include/sway/config.h
+++ b/include/sway/config.h
@@ -320,6 +320,7 @@ struct bar_config {
struct side_gaps gaps;
int status_padding;
int status_edge_padding;
+ uint32_t workspace_min_width;
struct {
char *background;
char *statusline;
diff --git a/include/swaybar/config.h b/include/swaybar/config.h
index 688fa2d7..4cacd21a 100644
--- a/include/swaybar/config.h
+++ b/include/swaybar/config.h
@@ -38,6 +38,7 @@ struct swaybar_config {
bool binding_mode_indicator;
bool wrap_scroll;
bool workspace_buttons;
+ uint32_t workspace_min_width;
list_t *bindings;
struct wl_list outputs; // config_output::link
int height;