Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default label for any given space should be its Mission Control display name #329

Closed
dominiklohmann opened this issue Dec 2, 2019 · 3 comments
Labels
suggestion Request for new feature or some form of enhancement

Comments

@dominiklohmann
Copy link
Collaborator

dominiklohmann commented Dec 2, 2019

The default label for any given space should be its Mission Control display name, e.g.:

  • Desktop <n> for the nth non-fullscreen space across all displays, starting at 1
  • <app name> for fullscreen spaces which have one app
  • <app name> + <app name> for fullscreen spaces which have two apps (left + right)

Note that while most of this can be implemented using signals, what cannot be detected easily is when two split-fullscreen apps swap their positions. Doing this with signals is hard to do, while this should be easy from within yabai.

@dominiklohmann dominiklohmann changed the title Defal Default tag for any given space should be its Mission Control display name Dec 2, 2019
@dominiklohmann dominiklohmann changed the title Default tag for any given space should be its Mission Control display name Default label for any given space should be its Mission Control display name Dec 2, 2019
@koekeishiya
Copy link
Owner

koekeishiya commented Dec 14, 2019

This could be tricky to maintain if the user uses mission-control to swap places between or create/destroy spaces. It could possibly be achieved by enumerating all spaces when we detect that mission-control exited and basically re-map all unknown and/or changed spaces. Not sure how efficient of a solution that would be, but I can see how that could work.

@koekeishiya koekeishiya added the suggestion Request for new feature or some form of enhancement label Dec 14, 2019
@dominiklohmann
Copy link
Collaborator Author

This kind of ties in with another change that I wanted to suggest, which is adding signals to yabai that are not raised by macOS: A combined window created event that includes restored windows, and a signal for spaces being moved, created, or destroyed.

With the latter set of events a user could implement this easily by themselves.

@koekeishiya
Copy link
Owner

Closing this as mentioned it should be possible when #1365 goes through.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
suggestion Request for new feature or some form of enhancement
Projects
None yet
Development

No branches or pull requests

2 participants