yabai rules don't recognize window title set by ghostty #5836
-
Steps to reproduce:
Even though the title is reported correctly once ghostty is launched:
But the rule never gets triggered, that is unless I remove I tested it with kitty to see if it could be yabai's issue, but no, it worked as expected:
My assumption is ghostty could be setting the title a bit too late? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 5 replies
-
You're probably correct. There was another discussion about the initial title (which some Linux1 WMs can report) not being set, and this is likely a duplicate of that. Thanks to GitHub's revolutionary search, I can't find the discussion right now though. Edit: found it #3606. Edit 2: based on Pluie's response below, it might not be related to that discussion. Footnotes
|
Beta Was this translation helpful? Give feedback.
-
Ghostty has to wait for the shell integration to report the title, which means that it at least has to wait for the shell to finish initializing and for the shell integration to run. There's gonna be a delay in there. |
Beta Was this translation helpful? Give feedback.
-
Well, I would say this is quite an essential feature for those using tiling window managers. Does it mean there are no workarounds to be able to distinguish between multiple instances of ghostty on macOS reliably (at startup)? Linux at least has a wm class property. |
Beta Was this translation helpful? Give feedback.
-
@pluiedev also not sure I understand this, but the whole point of |
Beta Was this translation helpful? Give feedback.
-
There is a delay, we set the title asynchronously for Ghostty, but we don't have to. I'll make an issue for it. Whether it fixes your issue or not its probably a good habit. |
Beta Was this translation helpful? Give feedback.
#5934