yabai
yabai copied to clipboard
Metamask notifications
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:
yabai -m signal --add \
label=keep-metamask-small \
event=window_created \
app="Google Chrome" \
title="MetaMask Notification" \
action="
yabai -m query --windows \
| jq -r '.[] | select(.pid | tostring == env.YABAI_PROCESS_ID).id' \
| xargs -I{} yabai -m window {} --toggle float
"
MacOS Ventura
Any hints or suggestions please?
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!!