Add workspace_buttons_all_outputs command

Add a bar command that makes it so all workspaces are shown, even the
ones that do not belong to the bar's output.
This commit is contained in:
Pedro Côrte-Real 2019-08-17 02:06:23 +01:00
parent 8441711990
commit 2b7454ca22
11 changed files with 47 additions and 1 deletions

View file

@ -222,6 +222,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_buttons_all_outputs;
sway_cmd bar_colors_cmd_active_workspace;
sway_cmd bar_colors_cmd_background;

View file

@ -265,6 +265,7 @@ struct bar_config {
char *font;
int height; // -1 not defined
bool workspace_buttons;
bool workspace_buttons_all_outputs;
bool wrap_scroll;
char *separator_symbol;
bool strip_workspace_numbers;

View file

@ -39,6 +39,7 @@ struct swaybar_config {
bool binding_mode_indicator;
bool wrap_scroll;
bool workspace_buttons;
bool workspace_buttons_all_outputs;
list_t *bindings;
struct wl_list outputs; // config_output::link
bool all_outputs;