Skip to content

How to replace application_activated and application_deactivated with application_front_switched #1890

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

You must be logged in to vote

Added back on master: #2122
Works exactly the same way as before.

I noticed that you add a rule in your signal to have perform some action on safari when it gets activated. This rule will be added multiple times (every time the signal runs) and you will end up with an infinite amount in the end. On master you can change it from rule --add to rule --apply and it will only apply the rule effects to known windows at the time instead of storing the rule for future use. See #2123

Fixed version for the master branch (and next release) would look like:

yabai -m signal --add event=application_activated \
	app="^Safari$" \
	action="yabai -m rule --apply app=\"^Safari$\" manage=off grid=30:4:1:1:2:…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@shamil9
Comment options

@koekeishiya
Comment options

Answer selected by koekeishiya
@shamil9
Comment options

@koekeishiya
Comment options

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