diff options
author | travankor <travankor@tuta.io> | 2019-12-05 18:58:31 -0700 |
---|---|---|
committer | travankor <travankor@tuta.io> | 2019-12-05 18:58:31 -0700 |
commit | 5eef9493f5a60c25369abb1817a78c39dd9779df (patch) | |
tree | 4ede55902dce7e9b7af16abbcc859bddc68fdf99 | |
parent | ff80a3a45facd0d345307b54581c94a05d801311 (diff) | |
download | autotiling-5eef9493f5a60c25369abb1817a78c39dd9779df.tar.gz |
ignore stacked layouts.
-rwxr-xr-x | autotiling.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/autotiling.py b/autotiling.py index c151acf..cca9c79 100755 --- a/autotiling.py +++ b/autotiling.py @@ -32,10 +32,11 @@ def switch_splitting(i3, e): # On sway on 1st focus the parent container returns 1, then forever the focused container itself is_full_screen = con.fullscreen_mode == 1 or con.parent.fullscreen_mode == 1 + is_stacked = con.parent.layout == 'stacked' is_tabbed = con.parent.layout == 'tabbed' - # Let's exclude floating containers, tabbed layouts and full screen mode - if not is_floating and not is_tabbed and not is_full_screen: + # Let's exclude floating containers, stacked layouts, tabbed layouts and full screen mode + if not is_floating and not is_stacked and not is_tabbed and not is_full_screen: new_layout = 'splitv' if con.rect.height > con.rect.width else 'splith' i3.command(new_layout) |