Scable window snapping trigger based on user input of screen resolution as permanant global variable

I understand that it’s impossible for user to program a scalable window snapping trigger with custom position and size by relative position (%) to edge/width/height of a screen. Because there is no library or Terminal command to return the resolution of individual displays. Applescript can only return the dimension (position and size) of window and the dimension of total desktop space (macBook's screen + external display/s).

Can there be a possible workaround?

For example, is there a way to set up a trigger to ask user to input the current display resolution, and save the info to a BTT .plist file? When we switch the dispay's resolution, we activate the trigger to change this permanent global variable, and window snapping will become kind of scalable regradless of the display's resolution?

Another not-so-elegant method is to use one trigger to (1) maximise a dummy app window, (2) get it's dimension (which will be equal to resolution of display less the macOS menu bar) and save the info in .plist (3) use the info for scalable window snapping trigger.

Thanks for reading this post.

you can use the "custom move/resize" action to do such things

Thanks, I will look into the related posts in this forum.

macOS 15.3.1
BTT 5.204
MBP M3 MAX 36GB

Hi Andreas,

The trigger is exactly what you said, but it seems the move to Y by % of screen is not functioning?

Size setting and X-offset relative to screen size work perfectly.
However, whatever Y-offset I used, the top-edge of window (window under cursor) always snap to top.

Thanks again!

you probably want -15%!

"-" 15% is the ans!
I couldn't believe the amount of time I’ve saved from repetitive tasks since BTT's substantial enhancement two years (or more?) ago.

:+1: :clap: