Skip to content

Change focus after creating new space #2076

Answered by koekeishiya
amlanjlahkar asked this question in Q&A
Discussion options

You must be logged in to vote

You need to escape the variable so that it is passed along as part of the script instead of being evaluated in the .yabairc script.

yabai -m signal --add event=space_created action="focus_space \$YABAI_SPACE_ID"

You may also need to include the full path to the focus_space script, unless it is located somewhere in your $PATH.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by amlanjlahkar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants