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.