|
|
@ -2849,8 +2849,10 @@ static struct cmd_results *bar_cmd_position(int argc, char **argv) {
|
|
|
|
} else if (strcasecmp("bottom", argv[0]) == 0) {
|
|
|
|
} else if (strcasecmp("bottom", argv[0]) == 0) {
|
|
|
|
config->current_bar->position = DESKTOP_SHELL_PANEL_POSITION_BOTTOM;
|
|
|
|
config->current_bar->position = DESKTOP_SHELL_PANEL_POSITION_BOTTOM;
|
|
|
|
} else if (strcasecmp("left", argv[0]) == 0) {
|
|
|
|
} else if (strcasecmp("left", argv[0]) == 0) {
|
|
|
|
|
|
|
|
sway_log(L_INFO, "Warning: swaybar currently only supports top and bottom positioning. YMMV");
|
|
|
|
config->current_bar->position = DESKTOP_SHELL_PANEL_POSITION_LEFT;
|
|
|
|
config->current_bar->position = DESKTOP_SHELL_PANEL_POSITION_LEFT;
|
|
|
|
} else if (strcasecmp("right", argv[0]) == 0) {
|
|
|
|
} else if (strcasecmp("right", argv[0]) == 0) {
|
|
|
|
|
|
|
|
sway_log(L_INFO, "Warning: swaybar currently only supports top and bottom positioning. YMMV");
|
|
|
|
config->current_bar->position = DESKTOP_SHELL_PANEL_POSITION_RIGHT;
|
|
|
|
config->current_bar->position = DESKTOP_SHELL_PANEL_POSITION_RIGHT;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
error = cmd_results_new(CMD_INVALID, "position", "Invalid value %s", argv[0]);
|
|
|
|
error = cmd_results_new(CMD_INVALID, "position", "Invalid value %s", argv[0]);
|
|
|
|