Make gaps implementation consistent with i3-gaps #2726
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This changes our gaps implementation to behave like i3-gaps.
Our previous implementation allowed you to set gaps on a per container basis. This is no longer possible as it isn't supported by i3-gaps and doesn't seem to have a practical use case. The
gaps_outer
andgaps_inner
properties on containers are now removed as they just read thegaps_inner
from the workspace.gaps inner|outer <px>
no longer changes the gaps for all workspaces. It only sets defaults for new workspaces.gaps inner|outer current|workspace|all set|plus|minus <px>
is now runtime only, and the workspace option is now removed.current
now sets gaps for the current workspace as opposed to the current container.workspace <ws> gaps inner|outer <px>
is now implemented. This sets defaults for a workspace.This also fixes a bug where changing the layout of a split container from linear to tabbed would cause gaps to not be applied to it until you switch to another workspace and back.
i3-gaps docs: https://github.com/Airblader/i3#gaps
Supersedes/closes #2131.