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

question: anyway to list all apps and their workspace ids? #232

Closed
PoiScript opened this issue May 21, 2024 · 3 comments
Closed

question: anyway to list all apps and their workspace ids? #232

PoiScript opened this issue May 21, 2024 · 3 comments

Comments

@PoiScript
Copy link

hi, thanks you for the hard work on areospace, it is a great tool!

I'm now migrating from yabai to areospace. But I cannot to find an equivalent for the yabai -m query --windows command, which returns all applications and their workspace ids.

In my setup, this command is essential to build an app switch bar in sketchybar, which looks like:

image
@nikitabobko
Copy link
Owner

You can do several CLI invocations:

for workspace in $(aerospace list-workspaces --monitor all --empty no); do
    echo "Workspace: $workspace"
    aerospace list-windows --workspace $workspace
    echo
done

Output example:

Workspace: C
1693 | Calendar | Calendar

Workspace: T
52 | Alacritty | /Users/Nikita.Bobko $ t

But there is a tracking issue to support tree command that would allow to get structure of all monitors, workspaces and windows tree in one go #16

@PoiScript
Copy link
Author

thanks for your quick reply! i'm going to close this issue and keep an eye on #16.

@nikitabobko
Copy link
Owner

nikitabobko commented Jun 16, 2024

In 0.12.0-Beta, list-windows comes with the --format flag that can be used to print to windows with their workspaces

0ec305a

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

No branches or pull requests

2 participants