aboutsummaryrefslogtreecommitdiffstats
path: root/sway/sway.5.scd
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-10-01 12:56:27 -0400
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-10-01 21:19:06 -0400
commitbb25194844599bb653a78633c9c09c0c0ff225ee (patch)
treea19bcbc62ff5d4ddcb822914a4f3516c7766406a /sway/sway.5.scd
parentMerge pull request #2739 from RedSoxFan/fix-2653 (diff)
downloadsway-bb25194844599bb653a78633c9c09c0c0ff225ee.tar.gz
sway-bb25194844599bb653a78633c9c09c0c0ff225ee.tar.zst
sway-bb25194844599bb653a78633c9c09c0c0ff225ee.zip
Handle border options for gaps
Fixes `hide_edge_borders smart` when gaps are in use. Implements `hide_edge_borders smart_no_gaps` and `smart_borders on|no_gaps|off`. Since `smart_borders on` is equivalent to `hide_edge_borders smart` and `smart_borders no_gaps` is equivalent to `hide_edge_borders smart_no_gaps`, I opted to just save the last value set for `hide_edge_borders` and restore that on `smart_borders off`. This simplifies the conditions for setting the border.
Diffstat (limited to 'sway/sway.5.scd')
-rw-r--r--sway/sway.5.scd8
1 files changed, 7 insertions, 1 deletions
diff --git a/sway/sway.5.scd b/sway/sway.5.scd
index aa5b38ab..3202d517 100644
--- a/sway/sway.5.scd
+++ b/sway/sway.5.scd
@@ -431,7 +431,7 @@ The default colors are:
431 Changes the _inner_ or _outer_ gaps for either _all_ workspaces or the 431 Changes the _inner_ or _outer_ gaps for either _all_ workspaces or the
432 _current_ workspace. 432 _current_ workspace.
433 433
434*hide\_edge\_borders* none|vertical|horizontal|both|smart 434*hide\_edge\_borders* none|vertical|horizontal|both|smart|smart\_no\_gaps
435 Hides window borders adjacent to the screen edges. Default is _none_. 435 Hides window borders adjacent to the screen edges. Default is _none_.
436 436
437*input* <input\_device> <input-subcommands...> 437*input* <input\_device> <input-subcommands...>
@@ -456,6 +456,12 @@ The default colors are:
456*kill* 456*kill*
457 Kills (closes) the currently focused container and all of its children. 457 Kills (closes) the currently focused container and all of its children.
458 458
459*smart\_borders* on|no\_gaps|off
460 If smart\_borders are _on_, borders will only be enabled if the workspace
461 only has one visible child (identical to _hide\_edge\_borders_ smart). If
462 smart\_borders is set to _no\_gaps_, borders will only be enabled if the
463 workspace only has one visible child and gaps greater than zero.
464
459*smart\_gaps* on|off 465*smart\_gaps* on|off
460 If smart\_gaps are _on_ gaps will only be enabled if a workspace has more 466 If smart\_gaps are _on_ gaps will only be enabled if a workspace has more
461 than one child. 467 than one child.