aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoseConseco <bartosz.styperek@gmail.com>2022-11-08 16:58:21 +0100
committerJoseConseco <bartosz.styperek@gmail.com>2022-11-08 16:58:21 +0100
commit175757e2a210656ea1634e37fe4b678e30a50b3d (patch)
tree830b51114dd81519b7e81fb5fd29c17e8df42867
parent3651a03751353b2f7d02178053462d61bce8349c (diff)
downloadautotiling-175757e2a210656ea1634e37fe4b678e30a50b3d.tar.gz
redo split as division
-rw-r--r--autotiling/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/autotiling/main.py b/autotiling/main.py
index b3803f1..6401518 100644
--- a/autotiling/main.py
+++ b/autotiling/main.py
@@ -93,7 +93,7 @@ def switch_splitting(i3, e, debug, workspaces, depth_limit, splitwidth, splithei
and not is_stacked
and not is_tabbed
and not is_full_screen):
- new_layout = "splitv" if con.rect.height > 1/splitratio*con.rect.width else "splith"
+ new_layout = "splitv" if con.rect.height > con.rect.width/splitratio else "splith"
if new_layout != con.parent.layout:
result = i3.command(new_layout)