|
|
@ -13,8 +13,18 @@ struct cmd_results *bar_cmd_status_command(int argc, char **argv) {
|
|
|
|
"status_command", "No bar defined.");
|
|
|
|
"status_command", "No bar defined.");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
free(config->current_bar->status_command);
|
|
|
|
free(config->current_bar->status_command);
|
|
|
|
config->current_bar->status_command = join_args(argv, argc);
|
|
|
|
config->current_bar->status_command = NULL;
|
|
|
|
wlr_log(WLR_DEBUG, "Feeding bar with status command: %s",
|
|
|
|
|
|
|
|
config->current_bar->status_command);
|
|
|
|
char *new_command = join_args(argv, argc);
|
|
|
|
|
|
|
|
if (strcmp(new_command, "-") != 0) {
|
|
|
|
|
|
|
|
config->current_bar->status_command = new_command;
|
|
|
|
|
|
|
|
wlr_log(WLR_DEBUG, "Feeding bar with status command: %s",
|
|
|
|
|
|
|
|
config->current_bar->status_command);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (config->active && !config->validating) {
|
|
|
|
|
|
|
|
load_swaybars();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return cmd_results_new(CMD_SUCCESS, NULL, NULL);
|
|
|
|
return cmd_results_new(CMD_SUCCESS, NULL, NULL);
|
|
|
|
}
|
|
|
|
}
|
|
|
|