diff options
author | taiyu <taiyu.len@gmail.com> | 2015-09-06 06:52:20 -0700 |
---|---|---|
committer | taiyu <taiyu.len@gmail.com> | 2015-09-06 06:52:20 -0700 |
commit | 3e9cdfd6a3bcb696ed15968c949a6f6fd7dae394 (patch) | |
tree | 77aa4aba2b690f06308ee676989be39fb9852f70 | |
parent | gap resize (diff) | |
download | sway-3e9cdfd6a3bcb696ed15968c949a6f6fd7dae394.tar.gz sway-3e9cdfd6a3bcb696ed15968c949a6f6fd7dae394.tar.zst sway-3e9cdfd6a3bcb696ed15968c949a6f6fd7dae394.zip |
man page
-rw-r--r-- | sway.5.txt | 14 | ||||
-rw-r--r-- | sway/commands.c | 2 |
2 files changed, 12 insertions, 4 deletions
@@ -64,11 +64,19 @@ Commands | |||
64 | Toggles fullscreen status for the focused view. | 64 | Toggles fullscreen status for the focused view. |
65 | 65 | ||
66 | **gaps** <amount>:: | 66 | **gaps** <amount>:: |
67 | Adds _amount_ pixels between each view, and around each output. | 67 | Sets _amount_ pixels as the gap between each view, and around each |
68 | workspace. | ||
68 | 69 | ||
69 | **gaps** <inner|outer> <amount>:: | 70 | **gaps** <inner|outer> <amount>:: |
70 | Adds _amount_ pixels as an _inner_ or _outer_ gap, where the former affects | 71 | Sets _amount_ pixels as the _inner_ or _outer_ gap, where the former affects |
71 | spacing between views and the latter affects the space around each output. | 72 | spacing between views and the latter affects the space around each |
73 | workspace. | ||
74 | |||
75 | **gaps** <inner|outer> <all|workspace|current> <set|plus|minus> <amount>:: | ||
76 | Changes the gaps for the _inner_ or _outer_ gap. _all_ changes the gaps for | ||
77 | all views or workspace, _workspace_ changes gaps for all views in current | ||
78 | workspace, or current workspace, and _current_ changes gaps for the current | ||
79 | view or workspace. | ||
72 | 80 | ||
73 | **kill**:: | 81 | **kill**:: |
74 | Closes the currently focused view. | 82 | Closes the currently focused view. |
diff --git a/sway/commands.c b/sway/commands.c index ffe7faa4..5c782e99 100644 --- a/sway/commands.c +++ b/sway/commands.c | |||
@@ -570,7 +570,7 @@ static bool cmd_gaps(struct sway_config *config, int argc, char **argv) { | |||
570 | target = CURRENT; | 570 | target = CURRENT; |
571 | } else if (strcasecmp(target_str, "all") == 0) { | 571 | } else if (strcasecmp(target_str, "all") == 0) { |
572 | target = ALL; | 572 | target = ALL; |
573 | } else if (strcasecmp(target_str, "workspace") == 0){ | 573 | } else if (strcasecmp(target_str, "workspace") == 0) { |
574 | if (inout == OUTER) { | 574 | if (inout == OUTER) { |
575 | target = CURRENT; | 575 | target = CURRENT; |
576 | } else { | 576 | } else { |