Move floating menu when the active window is at the monitor's edge.

This question is not mission-critical, but I would be grateful if someone could help.

I am currently running BTT 4.591 and MacOS 14.5. But the following issue is for all versions I have ever installed.

I place a floating menu just outside the right edge of the active window so that the menu won't block the file's content:

Obviously, with this setting, when the edge (right edge, in this case) of the active window touches the right edge of the screen (e.g., two windows tile side by side, and occupying the whole screen), I can no longer see or use the floating menu.

Is there any way to move the menu automatically inwards when the active window's edge hits/touches the edge of the screen?

Thank you very much in advance.

Additional info: Interestingly, I have another menu that aligns to the outer top edge of the active window and can automatically move to the inner top edge.

That is on my TODO list, currently it would be hard to achieve / require scripting. It should be easy to implement, so maybe I can add it soon.

Your menu looks cool!

Thanks! :pray: :+1:

I was trying to do exactly this with scripting, however I found adjusting the necessary parameters (the anchor position), caused BTT to crash, so while in theory it is possible with simple scripting, in practice it seems to be bugged currently.

See Updating BTTAnchorRelation doesn't work or crashes BTT for more details.

I would love to have a way to arbitrarily adjust the anchor position. My use case is that I often have windows positioned on top of each other in two side-by-side stacks, each taking half of the screen. I'd like to display a small visual indicator of the windows in the stack, to the left of the right stack when it is focused, and vice-versa when the other stack is focused. It's inspired by GitHub - AdamWagner/stackline: Visualize yabai window stacks on macOS. Works with yabai & hammerspoon.

v 4.612 alpha adds this option, I hope it achieves what you need:

@qb0k updating the anchor will soon be possible

Works beautifully! Thanks a million.

1 Like