I want a BTT setup where I can trigger a keyboard shortcut (⌥1, ⌥2, ⌥3, etc...) and fill my two monitors with certain programs like: Safari & Quip split half/half on main monitor with Slack & Calendar split half/half on secondary monitor. If the programs are not open, I want them to launch and be assigned their layout. I want to then be able to launch/activate other layouts like replacing Slack/Calendar with fullscreen Mail on secondary monitor. I could then use the first shortcut to go back to my original layout. I don't want any other windows that might be open to affect the layout. This would be immensely helpful to me because I often need certain layouts of programs open and I want to utilize my screen space accordingly, without having to tab into each program and window snap it to where I need each time I change layouts.
I tried to set up this, with what I thought would work, but I have lots of issues with it:
In my shortcut actions I do this:
- Hide All Windows (ensure no programs not in the layout will be shown)
- Delay? I added this in recently but I can't tell if it helps or not
- Launch all layout apps and show them (if already open).
- Restore the window layout that was previously saved (Main: Quip / Safari 50/50 split. Secondary: Slack / Mail 50/50 split)
- Hide programs which I want available but not visible in the layout immediately (fullscreen Spotify, Calendar, and Sketch)
When I trigger this shortcut, it doesn't really work. One of these will happen:
- Everything is hidden, nothing opens or is shown or applied to the layout
- A few windows are snapped to the layout and shown, while others are unaffected or still hidden
- After hitting the shortcut 5+ times, the layout might actually work with either one or zero windows out of place.
What's a better way to handle this workflow? I'm very tempted to scurry off to Display Maid (Display Maid - save and restore window layouts) but I've been a longtime BTT user and I want to know how to make it work in this app.
I think you won't be able to make this work reliably. The timings necessary for waiting on apps to launch, have their windows ready for resizing etc. can not be modeled using actions in BTT. A specialized app would probably be much better at this as it can contain tons of logic to somehow make this reliable.
I see. Regardless of launching, even if the apps are open the layout does not apply correctly. I would compromise having to launch the apps but I still seem to have trouble with them applying layouts. Is there anything else here that I need to wait for before resizing? Also, will the windows still resize even though their menubar 'title' names might be different (i.e. Safari having different tabs open)
You mean the "restore window layout" action, without any of the other actions doesn't work for you?
BTT uses various heuristics to match the windows, so it can work with different titles than recorded but depends on the situation. E.g. if you recorded two Safari windows and now have two safari windows with different tabs open, BTT will randomly choose one of them.
Hi Andreas--just wanted to share a related but different Q for you. This assumes I only have one of each window open: Non-Technical User Seeking Help Re: Auto Resize 😫
Can you reply if you find a moment?
Hi Andreas, related question, where would one find a saved window layout after running the shortcut action to save a layout and give it a name?
For others who come across this thread and are interested in powerful responsive window resizing tools – you have a couple options:
- BTT using restore window layouts, works in most cases.
- macOS Automation tool Bunch (bunchapp.co) + window rearranger Moom (manytricks.com/moom). Bunch hides and opens the windows you want, Moom arranges and saves the layouts using Window Snapshots. There's even documentation explaining how to link the two.
Stay from Cordless Dog for saving/recalling window layouts.
Hammerspoon for general scripting (Lua), you can make it do whatever you want with your windows to the point, the Hammerspoon APIs are great. Probably the most powerful and extensible on this list, but very technical.
I hope this helps anyone with interests in saving and recalling window layouts in the future!