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

How can I make Jetbrain apps and all windows generated by them have manage=off? #1819

Closed
dambros-nstech opened this issue Aug 7, 2023 · 1 comment

Comments

@dambros-nstech
Copy link

I use several Jetbrains apps and want Yabai to completely ignore them. I tried following the this comment without success.

Here is my configuration in yabairc:

apps='^(IntelliJ IDEA|Rider|GoLand|PyCharm|DataGrip)$'
yabai -m rule --add app="JetBrains Toolbox" manage=off
yabai -m rule --add app="${apps}" manage=off
yabai -m signal --add event=window_created app="${apps}" action='~/.config/yabai/scripts/jetbrains'

And the script:

echo "Test"

# check if there is exactly one window belonging to the process of the window that was just created
if yabai -m query --windows \
    | jq -er 'map(select(.id == env.YABAI_WINDOW_ID).pid)[0] as $pid | map(select(.pid == $pid)) | length == 1' >  /dev/null 
then
    # unfloat the window
    yabai -m window "${YABAI_WINDOW_ID}"  --toggle float
fi

I never see the "Test" string when I'm using Rider and opening windows, so the last part of the configuration doesn't seem to work. I'm checking the logs using tail -f /tmp/yabai_$USER.out.log

Yabai version: yabai-v5.0.6

@dambros-nstech
Copy link
Author

It seems using a regex like this apps='^(IntelliJ IDEA|Rider|GoLand|PyCharm|DataGrip)$' was the problem. I added a rule for each and it worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant