|
|
@ -1546,7 +1546,7 @@ static struct cmd_results *bar_cmd_position(int argc, char **argv) {
|
|
|
|
return error;
|
|
|
|
return error;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
sway_log(L_DEBUG, "Setting bar position '%s'", argv[0]);
|
|
|
|
sway_log(L_DEBUG, "Setting bar position '%s' for bar: %s", argv[0], config->current_bar->id);
|
|
|
|
return cmd_results_new(CMD_SUCCESS, NULL, NULL);
|
|
|
|
return cmd_results_new(CMD_SUCCESS, NULL, NULL);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -1562,10 +1562,10 @@ static struct cmd_results *bar_cmd_strip_workspace_numbers(int argc, char **argv
|
|
|
|
|
|
|
|
|
|
|
|
if (strcasecmp("yes", argv[0]) == 0) {
|
|
|
|
if (strcasecmp("yes", argv[0]) == 0) {
|
|
|
|
config->current_bar->strip_workspace_numbers = true;
|
|
|
|
config->current_bar->strip_workspace_numbers = true;
|
|
|
|
sway_log(L_DEBUG, "Stripping workspace numbers on bar");
|
|
|
|
sway_log(L_DEBUG, "Stripping workspace numbers on bar: %s", config->current_bar->id);
|
|
|
|
} else if (strcasecmp("no", argv[0]) == 0) {
|
|
|
|
} else if (strcasecmp("no", argv[0]) == 0) {
|
|
|
|
config->current_bar->strip_workspace_numbers = false;
|
|
|
|
config->current_bar->strip_workspace_numbers = false;
|
|
|
|
sway_log(L_DEBUG, "Enabling workspace numbers on bar");
|
|
|
|
sway_log(L_DEBUG, "Enabling workspace numbers on bar: %s", config->current_bar->id);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
error = cmd_results_new(CMD_INVALID, "strip_workspace_numbers", "Invalid value %s", argv[0]);
|
|
|
|
error = cmd_results_new(CMD_INVALID, "strip_workspace_numbers", "Invalid value %s", argv[0]);
|
|
|
|
return error;
|
|
|
|
return error;
|
|
|
@ -1599,7 +1599,7 @@ static struct cmd_results *bar_cmd_tray_padding(int argc, char **argv) {
|
|
|
|
"Unknown unit %s", argv[1]);
|
|
|
|
"Unknown unit %s", argv[1]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
config->current_bar->tray_padding = padding;
|
|
|
|
config->current_bar->tray_padding = padding;
|
|
|
|
sway_log(L_DEBUG, "Enabling tray padding of %d px", padding);
|
|
|
|
sway_log(L_DEBUG, "Enabling tray padding of %d px on bar: %s", padding, config->current_bar->id);
|
|
|
|
return cmd_results_new(CMD_SUCCESS, NULL, NULL);
|
|
|
|
return cmd_results_new(CMD_SUCCESS, NULL, NULL);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -1615,10 +1615,10 @@ static struct cmd_results *bar_cmd_workspace_buttons(int argc, char **argv) {
|
|
|
|
|
|
|
|
|
|
|
|
if (strcasecmp("yes", argv[0]) == 0) {
|
|
|
|
if (strcasecmp("yes", argv[0]) == 0) {
|
|
|
|
config->current_bar->workspace_buttons = true;
|
|
|
|
config->current_bar->workspace_buttons = true;
|
|
|
|
sway_log(L_DEBUG, "Enabling workspace buttons on bar");
|
|
|
|
sway_log(L_DEBUG, "Enabling workspace buttons on bar: %s", config->current_bar->id);
|
|
|
|
} else if (strcasecmp("no", argv[0]) == 0) {
|
|
|
|
} else if (strcasecmp("no", argv[0]) == 0) {
|
|
|
|
config->current_bar->workspace_buttons = false;
|
|
|
|
config->current_bar->workspace_buttons = false;
|
|
|
|
sway_log(L_DEBUG, "Disabling workspace buttons on bar");
|
|
|
|
sway_log(L_DEBUG, "Disabling workspace buttons on bar: %s", config->current_bar->id);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
error = cmd_results_new(CMD_INVALID, "workspace_buttons", "Invalid value %s", argv[0]);
|
|
|
|
error = cmd_results_new(CMD_INVALID, "workspace_buttons", "Invalid value %s", argv[0]);
|
|
|
|
return error;
|
|
|
|
return error;
|
|
|
|