[yambar] Put eDP-1 always first
This commit is contained in:
parent
5b4ba8b12c
commit
59fb8e4c88
1 changed files with 4 additions and 1 deletions
|
@ -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"]
|
||||
|
|
Loading…
Reference in a new issue