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 to open GIMP's dialog windows in floating mode? #710

Closed
danijar opened this issue Nov 9, 2020 · 4 comments
Closed

How to open GIMP's dialog windows in floating mode? #710

danijar opened this issue Nov 9, 2020 · 4 comments
Labels
question Request for information or help, not an issue

Comments

@danijar
Copy link

danijar commented Nov 9, 2020

I would like to have the main window inside the tiled layout and all remaining dialog windows in floating mode. The app name us GIMP-<version> and the main window's title is <filename> (<options>) <dimensions> – GIMP.

I first tried to use a negative lookahead. However, I found that yabai does not support negative lookaheads.

yabai -m rule --add app='^GIMP' title='(?!GIMP)$' manage=off

I then to use the negative syntax explained in this issue. However, this gives an unknown key 'title[!]' error in yabai v3.3.0.

yabai -m rule --add app='^GIMP' 'title[!]="GIMP$"' manage=off

How can I write a rule that disables the tiling window management for GIMP windows except for the main window?

@rockyzhang24
Copy link

[] means optional, so you should use title=xxx or title!=xxx.

@koekeishiya
Copy link
Owner

koekeishiya commented Nov 14, 2020

As yanzhang mentioned, yabai -m rule --add app='^GIMP' title!='GIMP$' manage=off should do it.

@koekeishiya koekeishiya added the question Request for information or help, not an issue label Nov 14, 2020
@danijar
Copy link
Author

danijar commented Nov 15, 2020

Perfect, thanks! I had to catch one more special case where the main window title would be different when no image is loaded. The complete rule is:

yabai -m rule --add app='^GIMP' title!='(^GNU|GIMP$)' manage=off

@tomelliot
Copy link

I needed a $ at the end of the app name:
yabai -m rule --add app='^GIMP$' title!='(^GNU|GIMP$)' manage=off

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Request for information or help, not an issue
Projects
None yet
Development

No branches or pull requests

4 participants