[yambar] Fix bug in sway.py if no workspaces in use
This commit is contained in:
parent
881996d384
commit
6cec11a8f1
1 changed files with 1 additions and 0 deletions
|
@ -50,6 +50,7 @@ def subscribe(types: List[str]):
|
||||||
def format_workspaces(workspaces):
|
def format_workspaces(workspaces):
|
||||||
result = []
|
result = []
|
||||||
last_output = None
|
last_output = None
|
||||||
|
i = 0
|
||||||
for i, ws in enumerate(sorted(
|
for i, ws in enumerate(sorted(
|
||||||
workspaces,
|
workspaces,
|
||||||
key=lambda x: ("" if x["output"] == "eDP-1" else x["output"], x["num"], x["name"])
|
key=lambda x: ("" if x["output"] == "eDP-1" else x["output"], x["num"], x["name"])
|
||||||
|
|
Loading…
Reference in a new issue