You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
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.
The text was updated successfully, but these errors were encountered: