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

Named spaces #19

Closed
hristost opened this issue Oct 14, 2020 · 1 comment
Closed

Named spaces #19

hristost opened this issue Oct 14, 2020 · 1 comment

Comments

@hristost
Copy link

Some window managers like Yabai can have labeled spaces. It would be neat if WhichSpace had a way of knowing and displaying the name of a space.

I am happy to submit a PR for this, but I am lost as to how to implement it in an orthogonal way. We can get the space labels (and other information, too, like open windows) using

yabai -m query --spaces

The output is a JSON array that is really easy to parse with JSONDecoder. Using the JSON from Yabai, we can know the names of spaces, and have a list of windows that are open in each space that we can display when the status bar dropdown is opened.

However, querying Yabai using a shell command feels a bit dangerous and also not very orthogonal. It would be better if we had a mechanism for receiving such metadata. For Yabai, sending metadata can be done using signals.

Is this something that WhichSpace users would be interested in? If so, what would an appropriate messaging interface be? Yabai and friends seem to use sockets, which has the benefit of not showing annoying permission alerts to the user. Übersicht has an AppleScript interface.

@gechr
Copy link
Owner

gechr commented Oct 14, 2020

Closing this as it’s a duplicate of #17

As stated on the linked issue, there are no plans to include this in WhichSpace at the moment, but may reconsider in future!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants