-
-
Notifications
You must be signed in to change notification settings - Fork 648
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
Ability to name spaces #119
Comments
More generally speaking, do you think it makes sense to allow unique names as selectors for windows, spaces and displays and either disallow existing selectors as names or require names to have a certain prefix? |
I'm not sure yet what the best option is - but I'd be fine with having selectors as reserved words, and everything else the user can use as their own names. |
I've had some thoughts on designs for this, and I think labels fit yabai best. They are easy to implement and offer versatility when used in combination with
|
I was looking around SkyLight.framework and noticed the procedures |
The name in these functions simply refer to the internal uuid of said space. |
…sed as an alias in commands that take a SPACE_SEL parameter
Did my first initial take on this, allowing the user to label a space, and refer to that label in every command that takes a SPACE_SEL. This can later be expanded to work on windows and displays.
|
Is there a way to remove the label after assigning it to a space? |
Not currently. I've created a new issue. |
This was briefly discussed in chunkwm, and lately mentioned in #116
After looking into this previously it appears that the display name visible in mission-control is simply an enumeration of available user-spaces - thus a space is not assigned a name that we can alter, you'd have to intercept and change the code that draws the mission-control overlay.
This is not something I'll bother looking into, however..
As the query system in yabai outputs a lot of useful info (more to come as of writing this) it would be possible to add a command
yabai -m space <space_sel> --name or --alias
or something, that would map the space with the given mission-control index to some name.The mission-control index would only be used from the users side of things - the actual mapping would store the internal space id such that the name would persist through movement. names would then become a valid option for SPACE_SEL.
This sort of a system could then be used together with a query command inside the config file to map a range of spaces during startup.
I imagine this would be something like:
The text was updated successfully, but these errors were encountered: