Setting up double click title bar to maximize/minimize

So better snap tool has a function that allows you to double click on the title bar to maximize. If you double click it again it will minimize.

I have tried setting this up with BTT but I can't get it to work nicely. For example, if I try to assign double clicking on the title bar to zooming, it doesn't have the minimize function. I can also add the minimize function to the same action, but then it prompts me with which one I want.

Anyone have a tutorial for setting this up to behave like better snap tool?

Just for the record replying here.

You need to create same trigger twice with different advanced condition with focused_window_hight & focused_window_width

For example if my screen resolution is 1280x780 and dock is set to auto-hide,

focused_window_hight <= 640 (taking account menubar height) + focused_window_width <= 1280 ====> Maximize

focused_window_hight >= 640 (taking account menubar height) + focused_window_width >= 1280 ====> Restore window

But it won't work properly as BTT doesn't consider every blank area titlebar for every app unlike default Mac zoom. Blank area only near traffic button works with BTT.

@sunnysigara there is also a new standard condition "trigger while mouse hovers window titlebar", making this easier:

I'll also make that variable available in the advanced conditions soon.

1 Like