X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=i3-split-maybe;h=0a98c90b3927ed8a499b56f05441b3959bd4fc54;hb=refs%2Fheads%2Fmaster;hp=bb425ef913e96ac26d706c9dd8c33689b2f36161;hpb=e801d1a57f0b30c57c6f644ab06a0f790159b236;p=distro-setup diff --git a/i3-split-maybe b/i3-split-maybe index bb425ef..0e05259 100755 --- a/i3-split-maybe +++ b/i3-split-maybe @@ -108,7 +108,7 @@ def set_layout(i3): print('d2: len(parent.nodes):', len(parent.nodes),' > 1', 'and ( ph:',ph,' > h + 10:',h + 10,' or pw:',pw,' > w:',w,' )', 'and (screen_w:',screen_w,' < screen_h:',screen_h,' or w <= half_w:',half_w,')', - 'and h <= half_h:',half_h,'))') + 'and h <= half_h:',half_h,')') # h + 10 because a tabbed window loses high compared to its parent. # Note, it is redundant since we check above if the parent is tabbed, @@ -121,7 +121,7 @@ def set_layout(i3): if (len(parent.nodes) > 1 and ( ph > h + 10 or pw > w ) and ( screen_w < screen_h or w <= half_w ) - and h <= half_h )): + and h <= half_h ): i3.command('split vertical, layout tabbed') # print('d1: tabbed')