How to screencapture just the active display in a dual monitor setup?
Starting from macOS 10.14 you can do the following:


Press ⌘⇧5
Select the «Capture entire screen» option
Click on the required screen to take its screenshot