mirror of
https://github.com/swaywm/sway.git
synced 2024-12-28 16:06:37 +01:00
Remove bar position left:right from docs
And adds a warning about using them (currently these are not supported by swaybar).
This commit is contained in:
parent
fc7132a3ba
commit
3b1c125e18
2 changed files with 3 additions and 1 deletions
|
@ -2849,8 +2849,10 @@ static struct cmd_results *bar_cmd_position(int argc, char **argv) {
|
|||
} else if (strcasecmp("bottom", argv[0]) == 0) {
|
||||
config->current_bar->position = DESKTOP_SHELL_PANEL_POSITION_BOTTOM;
|
||||
} 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;
|
||||
} 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;
|
||||
} else {
|
||||
error = cmd_results_new(CMD_INVALID, "position", "Invalid value %s", argv[0]);
|
||||
|
|
|
@ -27,7 +27,7 @@ Commands
|
|||
**id** <bar_id>::
|
||||
Sets the ID of the bar.
|
||||
|
||||
**position** <top|bottom|left|right>::
|
||||
**position** <top|bottom>::
|
||||
Sets position of the bar. Default is _bottom_.
|
||||
|
||||
**output** <output>::
|
||||
|
|
Loading…
Reference in a new issue