I'm looking for an option to toggle between the maximum window size and the last size back and forth, with the same touch pattern on the trackpad.
I already created a command to maximize my window, but if I choose the same touch pattern for the last size, I get a menu to choose from. I want it without the menu appearing.
Is this possible?
Is there no one who can help me out?
I had a look but couldn't immediately find any way to do this within the BTT UI.
I think you would have to write a script to do this. You would create two named triggers, one for the Maximise action, one for the Restore action.
It would be nice if BTT supported conditional execution within the UI. A simple way would be for a new Trigger option that checks a BTT variable for a specific value, and only triggers the action(s) if the variable is set to that value.
Then it would be possible to do this via the UI, with no script needed. One would add the "Assign Value To Variable" actions to set the variable, and have the triggers check the value when deciding what to execute.
@Black_Simorgh I noticed that another user asked this a while ago, and there's a forum post with an example script you can use, already written: Cycling through custom areas - #7 by coolwhiff
First of all, thanks for your help.
I created two triggers for maximizing and restoring window sizes, but I have no clue about this script.
Do I have to modify the script to make it work?
You should only need to change this bit:
Change it to:
"name of maximize trigger",
"name of restore trigger"
Obviously put the correct names for your named triggers in those two middle lines.
Wow, thank you very much.
It works like a charm. Now I have one less problem to worry about.
Glad it works. Thanks to @coolwhiff for writing the script!