21

When I use ++3 to take a screenshot with my laptop connected to a external monitor, it output a couple of images, one for each display.

enter image description here

Is there any way to take the screenshot of just the active monitor instead of both?

BTW, I know that exist ++4 that let me select a region, but this is not the idea.

I found the command screencapture that can capture only the main monitor with -m option.

screencapture -m ~/Desktop/screencapture.jpg

But, what about second monitor?

3
  • 1
    This would be very helpful.
    – 0942v8653
    Commented Dec 6, 2014 at 0:29
  • Have you tried Grab? It might allow you to do something along those lines.
    – baum
    Commented Dec 6, 2014 at 4:24
  • 1
    @baum, yes I tried it. But is even slower that have to erase one screenshot every time I take a screenshot. My point is, I never used both images, and asked thinking of a way to avoid one.
    – jherran
    Commented Dec 6, 2014 at 7:02

4 Answers 4

18

Starting from macOS 10.14 you can do the following:

  1. Press 5
  2. Select the «Capture entire screen» option
  3. Click on the required screen to take its screenshot
4
  • 1
    This is a great solution. Just an extra click (for choosing the desired screen) compared to ⌘⇧+3. Commented Feb 21, 2020 at 0:49
  • Perhaps in the future, Apple will give us cmd-shift-6 and make it user friendly. On windows by using GreenShot - there is separate shortcut Alt+PrintScreen for such functionality. You can do it, Apple!
    – userJT
    Commented Mar 14, 2022 at 16:06
  • @userJT I suppose you can find a similar software for macOS
    – Finesse
    Commented Mar 15, 2022 at 9:18
  • Yeah not idea if you're doing it repeatedly. Commented Jul 29 at 23:24
8

I think from looking at Apple's official list of screenshot shortcuts, the shortcut that comes closest to what you're trying to do is

+ + 4 and then SPACEBAR.

After pressing that combination, you need to click on the window you want a screenshot of. Since there's no other shortcut on the Apple-provided list that can capture the active screen, I believe you'll have to use this unless there's a third-party solution that allows different key combinations.

1
  • I didn't know that, that's useful in other cases. Not that I'm going to remember it when needed :( Commented Jul 29 at 23:25
5

This solution works for me using Keyboard Maestro.

keyboard maestro image

Steps to do it:

  1. Create a new trigger: name it something like Screenshot Active Monitor
  2. Add a hot key trigger. I use Print Screen button on my keyboard (which is F13). You can use any shortcut that work for you.

Add following actions to execute on the above keypress: 1. Type a combination of the keystrokes – Shift + Command + 4 2. Type a Space Keystroke 3. Type the Return Keystroke

Check your active monitor screenshot (that has active window you last accessed) in your saved location for screenshots!

2

Expanding on your own findings, you can use screencapture in additional ways:

  • screencapture -SW ~/Desktop/screencapture.jpg
-S         in window capture mode, capture the screen not the window
-W         start interaction in window selection mode

Now you need to click on a “window” that is big enough to capture the whole screen – the Desktop.

When capturing the main screen, move your mouse to the screen edge where your dock is located and click (even clicking on the Dock, visible or not, captures the whole screen).

Capturing a screen without the Dock, you need to find an area where the Desktop is visible.


You can capture a rectangle that matches your secondary screen. This is more useful if your monitor layout doesn't change.

For example, given two full-HD monitors, main on the left, you could use this to capture a rectangular area of 1920x1080 starting 1920 pixels to the right (where your secondary monitor starts):

  • screencapture -R1920,0,1920,1080 ~/Desktop/screencapture.jpg
-R<x,y,w,h> capture screen rect

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .