diff options
author | Matthias Langhard <matthias.langhard@ecologic.ch> | 2021-01-08 11:48:44 +0100 |
---|---|---|
committer | Matthias Langhard <matthias.langhard@ecologic.ch> | 2021-01-08 11:48:44 +0100 |
commit | ccd884257abd592cdfa770fdcbf84c4cdef7938e (patch) | |
tree | c9f5f46b11899e656fe157c0b10837f41e36486f | |
parent | 707e9a5104f1e3771f8c52ad746cc0975aeafa8c (diff) | |
download | autotiling-ccd884257abd592cdfa770fdcbf84c4cdef7938e.tar.gz |
change: uses workspace numbers instead of names for more flexibility with workspace naming
-rw-r--r-- | autotiling/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autotiling/main.py b/autotiling/main.py index f50af7a..5acd6bc 100644 --- a/autotiling/main.py +++ b/autotiling/main.py @@ -29,7 +29,7 @@ except ImportError: def switch_splitting(i3, e, debug, workspaces): try: con = i3.get_tree().find_focused() - if con and not workspaces or (con.workspace().name in workspaces): + if con and not workspaces or (str(con.workspace().num) in workspaces): if con.floating: # We're on i3: on sway it would be None # May be 'auto_on' or 'user_on' |