Merge gaps support as-is

This code was copied over unmodified from https://github.com/Airblader/i3-gaps.

I have split out the differences between i3-gaps and i3 into three areas:
1. Gaps
2. i3bar height
3. rgba colors
This commit is contained in:
Michael Stapelberg
2022-10-30 16:19:04 +01:00
committed by Michael Stapelberg
parent 0b89d4b2a7
commit b825dc124a
22 changed files with 668 additions and 33 deletions

View File

@ -43,6 +43,7 @@ state INITIAL:
'title_window_icon' -> TITLE_WINDOW_ICON
'mode' -> MODE
'bar' -> BAR
'gaps' -> GAPS
state CRITERIA:
ctype = 'class' -> CRITERION
@ -95,6 +96,23 @@ state BORDER:
'1pixel'
-> call cmd_border("pixel", 1)
# gaps inner|outer|horizontal|vertical|top|right|bottom|left [current] [set|plus|minus|toggle] <px>
state GAPS:
type = 'inner', 'outer', 'horizontal', 'vertical', 'top', 'right', 'bottom', 'left'
-> GAPS_WITH_TYPE
state GAPS_WITH_TYPE:
scope = 'current', 'all'
-> GAPS_WITH_SCOPE
state GAPS_WITH_SCOPE:
mode = 'plus', 'minus', 'set', 'toggle'
-> GAPS_WITH_MODE
state GAPS_WITH_MODE:
value = word
-> call cmd_gaps($type, $scope, $mode, $value)
state BORDER_WIDTH:
end
-> call cmd_border($border_style, -1)