What I want is to associate a shortcut, say, SHIFT+1, to
- Open a certain app if it is not already open. Or focus on its window if it is already open.
- Wait until the app opens/focuses.
- Then snap the window of the app to pre-determined snap area.
Is there a way to do this reliably?
Right now, my current solution is
- Show/Hide specific application
- Delay next action by 2.0s
- Trigger snap area
But it sometimes creates a mess, for example, if it takes more than 2s to open the app, or I trigger multiple such shortcuts. Moreover it is slow - regardless of whether the app is open or not, it waits 2s for every app.
I also tried "Custom move/resizes window" functionality but it doesn't recognise window by their title (active window or window under cursor options work).