Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/winmenu.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ def i3clients():
Each window text is of format "[workspace] window title (instance number)"
"""
clients = {}
for ws_num in range(1,11):
workspace = i3.filter(num=ws_num)
for ws_name in [w['name'] for w in i3.get_workspaces()]:
workspace = i3.filter(name = ws_name)
if not workspace:
continue
workspace = workspace[0]
Expand Down