diff --git a/yambar/sway.py b/yambar/sway.py index 5ba4b0f..9fdd164 100755 --- a/yambar/sway.py +++ b/yambar/sway.py @@ -50,7 +50,10 @@ def subscribe(types: List[str]): def format_workspaces(workspaces): result = [] last_output = None - for i, ws in enumerate(sorted(workspaces, key=lambda x: (x["output"], x["num"], x["name"]))): + for i, ws in enumerate(sorted( + workspaces, + key=lambda x: ("" if x["output"] == "eDP-1" else x["output"], x["num"], x["name"]) + )): name = ws["name"] new_monitor = last_output is not None and last_output != ws["output"]