Click dock icon to minimize front window

When I left-click an icon in the dock, that has a window at the front, it will do nothing. I'm looking for a way to make it do something, like minimizing the front window when I left-click its icon.

⌥ and left-click is another option, that hides and unhides windows but it would be much better if left-click can minimize the front windows without the need to install another dock or rely on ⌥ and left-click.

Hey Ali,

Keyboard Maestro cannot change how the Apple Dock behaves.