X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=i3-split-maybe;h=0e052599d2b524619bf8e9a05c1a994cf9971d64;hb=3342374657bd712f14cd772378b23d2bca3382cb;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')