Add setting for minimal width of workspace buttons
This commit is contained in:
@ -646,6 +646,10 @@ CFGFUN(bar_workspace_buttons, const char *value) {
|
||||
current_bar->hide_workspace_buttons = !eval_boolstr(value);
|
||||
}
|
||||
|
||||
CFGFUN(bar_workspace_min_width, const long width) {
|
||||
current_bar->workspace_min_width = width;
|
||||
}
|
||||
|
||||
CFGFUN(bar_strip_workspace_numbers, const char *value) {
|
||||
current_bar->strip_workspace_numbers = eval_boolstr(value);
|
||||
}
|
||||
|
@ -780,6 +780,9 @@ static void dump_bar_config(yajl_gen gen, Barconfig *config) {
|
||||
ystr("workspace_buttons");
|
||||
y(bool, !config->hide_workspace_buttons);
|
||||
|
||||
ystr("workspace_min_width");
|
||||
y(integer, config->workspace_min_width);
|
||||
|
||||
ystr("strip_workspace_numbers");
|
||||
y(bool, config->strip_workspace_numbers);
|
||||
|
||||
|
Reference in New Issue
Block a user