aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Langhard <matthias.langhard@ecologic.ch>2021-01-08 11:48:44 +0100
committerMatthias Langhard <matthias.langhard@ecologic.ch>2021-01-08 11:48:44 +0100
commitccd884257abd592cdfa770fdcbf84c4cdef7938e (patch)
treec9f5f46b11899e656fe157c0b10837f41e36486f
parent707e9a5104f1e3771f8c52ad746cc0975aeafa8c (diff)
downloadautotiling-ccd884257abd592cdfa770fdcbf84c4cdef7938e.tar.gz
change: uses workspace numbers instead of names for more flexibility with workspace naming
-rw-r--r--autotiling/main.py2
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'