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

Rule for iOS Simulator to keep floating #294

Closed
ubuntudroid opened this issue Oct 26, 2019 · 8 comments
Closed

Rule for iOS Simulator to keep floating #294

ubuntudroid opened this issue Oct 26, 2019 · 8 comments

Comments

@ubuntudroid
Copy link

I've added the following rule to .yabairc to keep the iOS Simulator windows floating:

yabai -m rule --add app="^Simulator" manage=off

However for some reason the Simulator is still tiled. I've also tried different app regexes like ^Simulator$ or Simulator, but to no avail.

Simulator window information:

{
  "id": 31707,
  "pid": 43642,
  "app": "Simulator",
  "title": "",
  "frame": {
    "x": 1282,
    "y": 2,
    "w": 472,
    "h": 936
  },
  "level": 0,
  "role": "AXWindow",
  "subrole": "AXStandardWindow",
  "movable": 1,
  "resizable": 0,
  "display": 1,
  "space": 1,
  "visible": 1,
  "focused": 0,
  "split": "vertical",
  "floating": 0,
  "sticky": 0,
  "border": 1,
  "shadow": 1,
  "zoom-parent": 0,
  "zoom-fullscreen": 0,
  "native-fullscreen": 0
}
@dominiklohmann
Copy link
Collaborator

This works for me. Are you sure you've restarted yabai (your yabairc is just a file that yabai executes on startup).

image

@ubuntudroid
Copy link
Author

Ha, I actually did restart yabai multiple times, but what I didn't do was restarting the simulator. For some reason it only worked after I did that - but now it works brilliantly every time! Thanks a lot @dominiklohmann !

@ubuntudroid
Copy link
Author

ubuntudroid commented Oct 26, 2019

Side note: interestingly enough sometimes the simulator out of the blue becomes tiled again (while it is running, not at start). Didn't find a pattern yet. Restarting the simulator helps then.

@danielakl
Copy link

danielakl commented Oct 28, 2019

@ubuntudroid One scenario where the Simulator would become tiled again is if yabai crashes and restarts automatically.

@ubuntudroid
Copy link
Author

@danielakl I'm pretty sure that didn't happen here. However, if it did: why would it tile again then? Shouldn't the rules be applied after a restart of yabai as well?

@dominiklohmann
Copy link
Collaborator

Shouldn't the rules be applied after a restart of yabai as well?

The yabairc file is executed asynchronously, so what you're really asking for is for rules to be applied when added.

@koekeishiya
Copy link
Owner

A rule is applied to existing windows when it is added. If there is some effect of a rule that does not apply to an existing window, that should be considered a bug. If you have steps to reproduce such a scenario, please create a new issue for that.

@ubuntudroid
Copy link
Author

Thanks everyone, will monitor this and report back once I have found a way to reproduce reliably. :)

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

4 participants