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:
committed by
Michael Stapelberg
parent
0b89d4b2a7
commit
b825dc124a
@ -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)
|
||||
|
Reference in New Issue
Block a user