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

Add space index and display index fields to signals #2152

Closed
koekeishiya opened this issue Mar 10, 2024 · 1 comment
Closed

Add space index and display index fields to signals #2152

koekeishiya opened this issue Mar 10, 2024 · 1 comment
Labels
suggestion Request for new feature or some form of enhancement

Comments

@koekeishiya
Copy link
Owner

Space and display signals currently pass the internal macOS id, and not the user-facing index that yabai uses as a parameter to space and display commands.

This makes it a bit tedious to use these signals properly.

space_created will pass an additional env.var. $YABAI_SPACE_INDEX.
space_changed will pass two additional env.vars. $YABAI_SPACE_INDEX and $YABAI_RECENT_SPACE_INDEX.

display_added/moved/resized will pass an additional env.var. $YABAI_DISPLAY_INDEX.
display_changed will pass two additional env.vars. $YABAI_DISPLAY_INDEX and $YABAI_RECENT_DISPLAY_INDEX.

@koekeishiya koekeishiya added the suggestion Request for new feature or some form of enhancement label Mar 10, 2024
@koekeishiya koekeishiya added the addressed on master; not released Fixed upstream, but not yet released label Mar 10, 2024
@koekeishiya
Copy link
Owner Author

Fixed in v7.0.0.

@koekeishiya koekeishiya removed the addressed on master; not released Fixed upstream, but not yet released label Mar 13, 2024
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

1 participant