Closed nakamigo closed 6 months ago
I use the following method:
# Don't manage all browser windows
yabai -m rule --add app="^Brave Browser$" manage=off
# Manage browser windows that are with browser's title, so
# all popups are not under this rule, but browser itself is
yabai -m rule --add app="^Brave Browser$" title="Brave" manage=on
Also, I use Rabby Wallet, instead of Metamask, and this wallet likes to close the popup if another window is focused. Which, in combination with focus_follow_mouse is very annoying, so I added these signals to turn off focus when popup appears, and turn it back on when I close it.
yabai -m signal --add app='Brave Browser' title="Rabby Wallet Notification" event='window_created' \
action="yabai -m config focus_follows_mouse off"
yabai -m signal --add app='Brave Browser' title="Rabby Wallet Notification" event='window_title_changed' \
action="yabai -m config focus_follows_mouse off"
yabai -m signal --add app='Brave Browser' title="Rabby Wallet Notification" event='window_destroyed' \
action="yabai -m config focus_follows_mouse autofocus"
@0xAndoroid
Thank you very very much! this has been annoying me for a year!!
Using yabai for almost a year and think it's a brilliant piece of software but
Trying to suppress triggering yabai on Metamask notification popups using this command:
MacOS Ventura
Any hints or suggestions please?