i3 improvements
[distro-setup] / i3-split-maybe
index bb425ef913e96ac26d706c9dd8c33689b2f36161..0e052599d2b524619bf8e9a05c1a994cf9971d64 100755 (executable)
@@ -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')