swayfx/sway/commands
Brian Ashworth 9e8aa39530 Implement per side and per direction outer gaps
This introduces the following command extensions from `i3-gaps`:
* `gaps horizontal|vertical|top|right|bottom|left <amount>`
* `gaps horizontal|vertical|top|right|bottom|left all|current
set|plus|minus <amount>`
* `workspace <ws> gaps horizontal|vertical|top|right|bottom|left
<amount>`

`inner` and `outer` are also still available as options for all three
of the above commands. `outer` now acts as a shorthand to set/alter
all sides.

Additionally, this fixes two bugs with the prevention of invalid gap
configurations for workspace configs:
1. If outer gaps were not set and inner gaps were, the outer gaps
would be snapped to the negation of the inner gaps due to `INT_MIN`
being less than the negation. This took precedence over the default
outer gaps.
2. Similarly, if inner gaps were not set and outer gaps were, inner
gaps would be set to zero, which would take precedence over the
default inner gaps.

Fixing both of the above items also requires checking the gaps again
when creating a workspace since the default outer gaps can be smaller
than the negation of the workspace specific inner gaps.
2018-11-07 22:44:11 -05:00
..
bar commands: replace EXPECTED_LESS_THAN with EXPECTED_AT_MOST 2018-10-23 10:51:54 +01:00
input Fix some missing commands in sway-input(5) 2018-10-03 07:50:37 -04:00
output Add relative output transform 2018-11-05 22:58:27 +00:00
seat Introduce cursor_rebase 2018-10-19 22:47:54 +10:00
assign.c commands: complete assign command 2018-08-18 17:25:06 +01:00
bar.c cmd_bar: simplify logic 2018-10-13 17:56:11 -04:00
bind.c commands: remove EXPECTED_MORE_THAN 2018-10-23 10:17:58 +01:00
border.c Move view border properties to container struct 2018-10-31 23:56:20 +10:00
client.c Move view marks properties to container struct 2018-11-01 18:09:51 +10:00
create_output.c Fix compilation against wlroots without X11 backend 2018-09-21 21:25:03 +10:00
default_border.c Allow setting border widths for normal borders using default_border. 2018-05-10 23:35:37 -07:00
default_floating_border.c Implement default_floating_border command and adjust CSD behaviour 2018-07-17 10:14:33 +10:00
default_orientation.c Add default_orientation command 2018-03-30 10:43:55 -04:00
exec.c Update for swaywm/wlroots#1126 2018-07-09 22:54:30 +01:00
exec_always.c commands/exec_always: defer command on config validation 2018-11-05 20:32:45 +01:00
exit.c remove checks for command handlers 2018-02-24 13:22:57 -05:00
floating.c Deny several commands when there's no outputs connected 2018-10-26 00:03:44 +10:00
floating_minmax_size.c Implement floating_minimum_size and floating_maximum_size 2018-07-11 22:16:48 +10:00
floating_modifier.c Implement floating_modifier <mod> [inverse|normal] 2018-07-24 18:41:08 -04:00
focus.c Fix focus_wrapping yes 2018-11-05 12:39:44 -05:00
focus_follows_mouse.c Add focus_follows_mouse always. (#3081) 2018-11-06 21:58:08 +01:00
focus_on_window_activation.c Implement focus_on_window_activation 2018-09-02 18:20:34 +10:00
focus_wrapping.c Address review comments on parse_boolean 2018-07-23 21:37:53 -04:00
font.c Implement pango support 2018-05-06 08:25:22 +10:00
for_window.c Update for swaywm/wlroots#1126 2018-07-09 22:54:30 +01:00
force_display_urgency_hint.c Fix urgent timer logic and remove unnecessary header includes 2018-07-21 10:28:07 +10:00
force_focus_wrapping.c Switch to using a function to parse booleans 2018-07-23 21:33:17 -04:00
fullscreen.c Deny several commands when there's no outputs connected 2018-10-26 00:03:44 +10:00
gaps.c Implement per side and per direction outer gaps 2018-11-07 22:44:11 -05:00
hide_edge_borders.c Handle border options for gaps 2018-10-01 21:19:06 -04:00
include.c Write to swaynag pipe fd directly on config errors 2018-08-03 10:37:35 -04:00
input.c Minor refactor of input manager 2018-10-20 13:11:43 +10:00
kill.c Deny several commands when there's no outputs connected 2018-10-26 00:03:44 +10:00
layout.c Deny several commands when there's no outputs connected 2018-10-26 00:03:44 +10:00
mark.c Move view marks properties to container struct 2018-11-01 18:09:51 +10:00
mode.c Create list for mouse binds when creating new mode 2018-07-31 23:49:42 -04:00
mouse_warping.c Add mouse_warping container 2018-10-10 12:45:21 +02:00
move.c Move view marks properties to container struct 2018-11-01 18:09:51 +10:00
no_focus.c Implement no_focus command 2018-07-16 22:18:12 +10:00
nop.c commands: add nop 2018-08-18 15:50:26 +01:00
opacity.c commands: print correct command on error for exec and opacity 2018-10-23 10:14:50 +01:00
output.c Remove layout.c 2018-08-26 12:05:16 +10:00
popup_during_fullscreen.c Implement popup_during_fullscreen 2018-10-08 22:49:59 +10:00
reload.c Move view marks properties to container struct 2018-11-01 18:09:51 +10:00
rename.c Deny several commands when there's no outputs connected 2018-10-26 00:03:44 +10:00
resize.c Deny several commands when there's no outputs connected 2018-10-26 00:03:44 +10:00
scratchpad.c Deny several commands when there's no outputs connected 2018-10-26 00:03:44 +10:00
seat.c commands: prevent running empty seat command 2018-09-08 19:53:27 +01:00
set.c commands: require set variable to start with $ 2018-08-18 15:50:26 +01:00
show_marks.c Move view marks properties to container struct 2018-11-01 18:09:51 +10:00
smart_borders.c Handle border options for gaps 2018-10-01 21:19:06 -04:00
smart_gaps.c Implement type safe arguments and demote sway_container 2018-09-05 18:01:43 +10:00
split.c Deny several commands when there's no outputs connected 2018-10-26 00:03:44 +10:00
sticky.c fix: cmd_sticky crash sway with empty container 2018-10-11 22:29:41 +02:00
swap.c Move view marks properties to container struct 2018-11-01 18:09:51 +10:00
swaybg_command.c Allow swaybg to be disabled 2018-10-08 15:08:33 +02:00
swaynag_command.c cmd_swaynag_command: fix typo in variable 2018-10-22 21:19:22 -04:00
tiling_drag.c Introduce tiling_drag directive 2018-09-11 17:17:19 +10:00
title_format.c Fix crashes when running certain commands on an empty workspace 2018-10-17 19:55:00 +10:00
unmark.c Move view marks properties to container struct 2018-11-01 18:09:51 +10:00
urgent.c commands: when setting urgency, check container is not null 2018-10-08 17:48:25 +01:00
workspace.c Implement per side and per direction outer gaps 2018-11-07 22:44:11 -05:00
workspace_layout.c Implement config parser for workspace_layout 2018-05-28 22:55:06 -04:00
ws_auto_back_and_forth.c Add workspace_auto_back_and_forth command 2018-04-08 16:44:59 +02:00