aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2016-05-29 11:53:13 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2016-05-29 11:53:13 -0400
commit3b1c125e18a85f917b03d865d56ee3705b813c3b (patch)
tree9ceafef1b1b5b1dd5463e77cecc2ef2581cab554
parentMerge pull request #677 from zandrmartin/maintain-workspace-output-assignments (diff)
downloadsway-3b1c125e18a85f917b03d865d56ee3705b813c3b.tar.gz
sway-3b1c125e18a85f917b03d865d56ee3705b813c3b.tar.zst
sway-3b1c125e18a85f917b03d865d56ee3705b813c3b.zip
Remove bar position left:right from docs
And adds a warning about using them (currently these are not supported by swaybar).
-rw-r--r--sway/commands.c2
-rw-r--r--sway/sway-bar.5.txt2
2 files changed, 3 insertions, 1 deletions
diff --git a/sway/commands.c b/sway/commands.c
index 409afce9..62852980 100644
--- a/sway/commands.c
+++ b/sway/commands.c
@@ -2849,8 +2849,10 @@ static struct cmd_results *bar_cmd_position(int argc, char **argv) {
2849 } else if (strcasecmp("bottom", argv[0]) == 0) { 2849 } else if (strcasecmp("bottom", argv[0]) == 0) {
2850 config->current_bar->position = DESKTOP_SHELL_PANEL_POSITION_BOTTOM; 2850 config->current_bar->position = DESKTOP_SHELL_PANEL_POSITION_BOTTOM;
2851 } else if (strcasecmp("left", argv[0]) == 0) { 2851 } else if (strcasecmp("left", argv[0]) == 0) {
2852 sway_log(L_INFO, "Warning: swaybar currently only supports top and bottom positioning. YMMV");
2852 config->current_bar->position = DESKTOP_SHELL_PANEL_POSITION_LEFT; 2853 config->current_bar->position = DESKTOP_SHELL_PANEL_POSITION_LEFT;
2853 } else if (strcasecmp("right", argv[0]) == 0) { 2854 } else if (strcasecmp("right", argv[0]) == 0) {
2855 sway_log(L_INFO, "Warning: swaybar currently only supports top and bottom positioning. YMMV");
2854 config->current_bar->position = DESKTOP_SHELL_PANEL_POSITION_RIGHT; 2856 config->current_bar->position = DESKTOP_SHELL_PANEL_POSITION_RIGHT;
2855 } else { 2857 } else {
2856 error = cmd_results_new(CMD_INVALID, "position", "Invalid value %s", argv[0]); 2858 error = cmd_results_new(CMD_INVALID, "position", "Invalid value %s", argv[0]);
diff --git a/sway/sway-bar.5.txt b/sway/sway-bar.5.txt
index 30c7d9bf..322dc32b 100644
--- a/sway/sway-bar.5.txt
+++ b/sway/sway-bar.5.txt
@@ -27,7 +27,7 @@ Commands
27**id** <bar_id>:: 27**id** <bar_id>::
28 Sets the ID of the bar. 28 Sets the ID of the bar.
29 29
30**position** <top|bottom|left|right>:: 30**position** <top|bottom>::
31 Sets position of the bar. Default is _bottom_. 31 Sets position of the bar. Default is _bottom_.
32 32
33**output** <output>:: 33**output** <output>::