Skip to content

Commit

Permalink
Merge pull request #1 from travankor/master
Browse files Browse the repository at this point in the history
Ignore stacked layouts.
  • Loading branch information
nwg-piotr authored Dec 11, 2019
2 parents ff80a3a + 5eef949 commit 7085314
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions autotiling.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 7085314

Please sign in to comment.