aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPiotr Miller <nwg.piotr@gmail.com>2019-12-11 09:31:19 +0100
committerGitHub <noreply@github.com>2019-12-11 09:31:19 +0100
commit708531485944e4b069904f81d26f5ddecefda12c (patch)
tree4ede55902dce7e9b7af16abbcc859bddc68fdf99
parentff80a3a45facd0d345307b54581c94a05d801311 (diff)
parent5eef9493f5a60c25369abb1817a78c39dd9779df (diff)
downloadautotiling-708531485944e4b069904f81d26f5ddecefda12c.tar.gz
Merge pull request #1 from travankor/masterv0.4
Ignore stacked layouts.
-rwxr-xr-xautotiling.py5
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)