summaryrefslogtreecommitdiffstats
path: root/sway.5.txt
diff options
context:
space:
mode:
authorLibravatar S. Christoffer Eliesen <christoffer@eliesen.no>2015-11-04 02:55:38 +0100
committerLibravatar S. Christoffer Eliesen <christoffer@eliesen.no>2015-11-04 13:21:10 +0100
commitabc5fbfaec5159de7e3f6043e61c00b81787a9f2 (patch)
tree325b45395cd3ccda48cb7400922fda5b4731b14b /sway.5.txt
parentMerge pull request #215 from sce/gaps (diff)
downloadsway-abc5fbfaec5159de7e3f6043e61c00b81787a9f2.tar.gz
sway-abc5fbfaec5159de7e3f6043e61c00b81787a9f2.tar.zst
sway-abc5fbfaec5159de7e3f6043e61c00b81787a9f2.zip
Learn "gaps edge_gaps <on|off|toggle>".
When yes, the old behaviour of adding half the inner gap around each view is used. When no, don't add any gap when an edge of the view aligns with the workspace. The result is inner gap only between views, not against the workspace edge. The algorithm is not perfect because it means the extra space is distributed amongst edge-aligned views only, but it's simple, looks good and it works.
Diffstat (limited to 'sway.5.txt')
-rw-r--r--sway.5.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/sway.5.txt b/sway.5.txt
index 5659a107..ab2bdedb 100644
--- a/sway.5.txt
+++ b/sway.5.txt
@@ -68,6 +68,11 @@ Commands
68**fullscreen**:: 68**fullscreen**::
69 Toggles fullscreen status for the focused view. 69 Toggles fullscreen status for the focused view.
70 70
71**gaps** edge_gaps <on|off|toggle>::
72 Whether or not to add gaps between views and workspace edges if amount of
73 inner gap is not zero. When _no_, no gap is added where the view is aligned to
74 the workspace edge, effectively creating gaps only between views.
75
71**gaps** <amount>:: 76**gaps** <amount>::
72 Sets default _amount_ pixels as the gap between each view, and around each 77 Sets default _amount_ pixels as the gap between each view, and around each
73 workspace. 78 workspace.