Take a screenshot of the current macOS window with a single click or keyboard shortcut

A macOS shortcut that simply copies a screenshot of the current app's frontmost window to the clipboard — a lot quicker than pressing shift-command-4, then spacebar and then left-clicking the window when the pointer turns into a camera symbol (if you even managed to remember the super-secret procedure).

To make the shortcut run from a keyboard shortcut, click the 'i' button at the top of the sidebar, then the 'Add Keyboard Shortcut' button, and then press your keyboard combination.

You have to wait some time for the keyboard shortcut to be activated systemwide (less than a minute), but if you restart the app you want the screenshot from, it will work immediately.

Download the shortcut here.