在 Linux 中像专业人士一样使用 GNOME 截图工具
截图
有 [几个可用于 Linux 的截图工具](https://itsfoss.com/take-screenshot-linux/)，我喜欢 [使用 Flameshot 进行截图](https://itsfoss.com/flameshot/) 和 Shutter 来编辑现有的截图。


但不幸的是，Flameshot 不能在 4K 屏幕上工作。因此，我不得不使用默认的 GNOME 截图工具，它在我的带有超高清屏幕的戴尔 XPS 上工作得非常好。


![GNOME screenshot tool](/data/attachment/album/202201/10/184728vufsdsswssfytsqf.jpg)


这一“被迫之举”让我意识到，如果你知道如何正确使用，[GNOME 截图](https://apps.gnome.org/app/org.gnome.Screenshot/) 并不是一个糟糕的工具。


在这里，我指的是用键盘快捷键来使用它，因为这样可以节省大量的时间。


让我展示一下如何像专家一样用那些方便的键盘快捷键来使用 GNOME 截图应用。


我假定你没有改变这里的默认的截图的键盘快捷键。


### 对整个屏幕进行截图：使用 Prt Scr 键


这是最简单的操作。在你的键盘上找到 `Prt Sc`（或称 `Prt Scr`、`Prt Scn`）键并按下它。它将对整个屏幕进行截图，并将其保存在你的主目录下的图片文件夹中。


![Screenshot of entire screen saved as PNG file](/data/attachment/album/202201/10/184730lqxkzkae00bkke0z.jpg)


在某些发行版（或版本）中，你可能会看到是否要保存截图的选项，但大多数情况下，它会自动保存屏幕截图。


这里需要注意的另一件事是，如果你有多个屏幕连接到系统上，它会把所有的屏幕一起截图。这意味着，你会得到一个超宽的图像。


但是，如果你只想对某个应用进行截图，而不是对整个屏幕进行截图呢？


### 给一个应用程序的窗口截图：使用 Alt+Prt Scr 键


要给正在运行的图形应用截图，你需要这样做：


点击正在运行的应用，使其获得焦点。现在，按住 `Alt` 键并按 `Prt Scr` 键。


它将得到应用窗口的截图，并保存到图片目录中。


![Screenshot of an application window in GNOME](/data/attachment/album/202201/10/184731xy17nm8tzsm9oncs.png)


这样获取的截图也有一个阴影效果，看起来很不错。


这很好，但如果你只想给某个特定区域截图，而不是整个屏幕呢？这也有一个技巧。


### 对屏幕的选定区域进行截图：使用 Shift+Prt Scr 键


按住 `Shift` 键。然后按 `Prt Scr` 键。你会看到屏幕上出现一个选框。将鼠标移动到所需的区域，开始拖动光标。它将高亮显示该区域，并在你释放鼠标后立即进行截图。


![Taking screenshot of an area in GNOME](/data/attachment/album/202201/10/184732oyynvyvmy20n202i.jpg)


### 复制截图到剪贴板而不是保存它们


当你在和别人聊天时，要和对方分享屏幕截图时，这非常有用。


![Screenshot copied to the clipboard can be used in various applications](/data/attachment/album/202201/10/184733n2r1wk32ixow7e42.jpg)


首先截图，但没必要将保存的截图文件附在聊天工具中。相反，你可以直接将截图复制到剪贴板，然后使用 `Ctrl+V` 快捷键将图像（从剪贴板）粘贴到聊天工具。


这样，你的系统就不会保留不必要的截图，你也可以节省一些鼠标点击次数。


要把截图保存到剪贴板，以便你能把它们粘贴到聊天工具、绘图工具或文档中，你必须把 `Ctrl` 键和你在前面几节中看到的其他截图快捷键一起使用。


* `Ctrl+Prt Scr`：将整个屏幕的截图复制到剪贴板上。
* `Ctrl+Alt+Prt Scr`：将应用窗口的截图复制到剪贴板上。
* `Ctrl+Shift+Prt Scr`：将选定区域的截图复制到剪贴板上


我必须补充一点，在这种情况下，[使用像 Flameshot 这样的工具](https://itsfoss.com/flameshot/) 甚至更好一些，因为它允许你在将截图保存到剪贴板之前对其进行注释。这样，你可以很容易地高亮屏幕的重要部分。


### 在截图中添加延迟，以便对下拉菜单进行截图


到目前为止，一切都很好。你只需按下几个键，就可以随心所欲地进行截图了。


问题是，当你要对下拉菜单或右键动作等进行截图时。当你按下屏幕截图键时，想要的项目可能会消失。


为了处理这种情况，你可以对该区域或整个屏幕进行截图，但要有一个延迟。


![Taking screenshot with delay](/data/attachment/album/202201/10/184734sakduppupkvdnrdn.jpg)


在 GNOME 屏幕截图工具中，你可以选择添加这个延迟。例如，你添加了 6 秒的延迟。你点击截图按钮，有 6 秒时间来做/显示你想做的事情。6 秒后，它就会自动截图了。


### 你有什么技巧吗？


这就是我使用 GNOME 截图工具的所有技巧。如果你还没有广泛地使用它，你应该会发现它很有帮助。如果你已经是一个专家，也许你知道一些可以添加到本文中的东西？请在评论区与我们其他人分享吧。




---


via: <https://itsfoss.com/using-gnome-screenshot-tool/>


作者：[Abhishek Prakash](https://itsfoss.com/author/abhishek/) 选题：[lujun9972](https://github.com/lujun9972) 译者：[geekpi](https://github.com/geekpi) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
There are [several screenshot tools available for Linux](https://itsfoss.com/take-screenshot-linux/). I prefer [using Flameshot for screenshots](https://itsfoss.com/flameshot/) and Shutter for editing the existing screenshots.

But Flameshot doesn’t work with 4K screens, unfortunately. And hence I had to resort back to the default GNOME screenshot tool which works perfectly on my Dell XPS with Ultra HD screen.

![gnome screenshot tool](https://itsfoss.com/content/images/wordpress/2021/12/gnome-screenshot-tool-800x413.jpg)

This ‘forced move’ made me realize that the [GNOME screenshot](https://apps.gnome.org/app/org.gnome.Screenshot/) is not a bad utility if you know how to use it properly.

From that, I meant using it with the keyboard shortcuts because that saves a lot of time.

Let me show how to use the GNOME Screenshot application like an expert with all those handy keyboard shortcuts.

I presume that you have not changed the default keyboard shortcuts for screenshot here.

## Take screenshot of entire screen(s): Use Prt Scr key

This is the simplest of the action. Locate the Prt Sc or Prt Scr or Prt Scn key on your keyboard and press it. It will take the screenshot of the entire screen and save it to the Pictures folder under your home directory.

![screenshot of entire screen gnome](https://itsfoss.com/content/images/wordpress/2021/12/screenshot-of-entire-screen-gnome-800x532.jpg)

In some distributions (or versions), you may get the options to whether you want to save the screenshot or not but mostly, it will save the screenshot automatically.

Another thing to note here is that if you have multiple screens attached to the system, it takes screenshot of all the screens together. This means, you get an ultra wide image.

But what if you want to take the screenshot of only a certain application, not the entire screen?

## Take screenshot of an application windows: Use Alt+Prt Scr key

To take the screenshot of a running graphical application, here’s what you need to do:

Click on the running application so that it in focus. Now, press and hold the Alt key and press Prt Scr key.

It will take the screenshot of the application window and save to the Pictures directory.

![screenshot of an application windows gnome](https://itsfoss.com/content/images/wordpress/2021/12/screenshot-of-an-application-windows-gnome-800x437.png)

The screenshots thus taken also has a shadow effect applied to them which looks good.

This is good but what if you want to take the screenshot of only a particular area, not the entire screen? There is a trick for that as well.

## Take screenshot of selected area of the screen: Use Shift+Prt Scr key

Press the Shift key and hold it. Now press the Prt Scr key. You’ll see a selector appear on the screen. Move around the mouse to the desired region and start dragging the cursor. It will highlight the region and take a screenshot as soon as you release the mouse.

![take screenshot of region gnome](https://itsfoss.com/content/images/wordpress/2021/12/take-screenshot-of-region-gnome-800x430.webp)

## Copy the screenshots to clipboard instead of saving them

This is very useful when you are chatting someone and have to share a screenshot with the other person.

![saving screenshot to clipboard and using it](https://itsfoss.com/content/images/wordpress/2021/12/saving-screenshot-to-clipboard-and-using-it-800x476.webp)

Taking the screenshot first and then attach the saved screenshot file to the messaging tool is unnecessary. Instead, you could just copy the screenshot to the clipboard and then use the Ctrl+V shortcut to paste the image (from the clipboard) into the messaging tool.

This way, your system won’t have unnecessary screenshots and you also save a few mouse clicks.

To save the screenshots to your clipboard so that you can paste them in a messaging tool, drawing tool or a document, you have to use the Ctrl key together with the other screenshots shortcuts you saw in previous sections.

- Ctrl+Prt Scr: Copies the screenshot of the entire screen(s) to the clipboard
- Ctrl+Alt+Prt Scr: Copies the screenshot of the application windows to the clipboard
- Ctrl+Shift+Prt Scr: Copies the screenshot of the selected region to the clipboard

I must add that [using a tool like Flameshot](https://itsfoss.com/flameshot/) is even better in such case because it allows you to annotate the screenshots before saving them to clipboard. This way, you can easily highlight the important part of your screen.

## Add delay to screenshot to take screenshots of dropdown menu

So far everything is good. You just press a couple of keys and take the screenshots as you like.

The problem comes when you have to take the screenshot of a dropdown menu or right click context action etc. As soon as you press the screenshot keys, the intended item may disappear.

To handle the situation, you can take the screenshot of the region or entire screen but with a delay.

![taking screenshot with delay gnome](https://itsfoss.com/content/images/wordpress/2021/12/taking-screenshot-with-delay-gnome-800x428.webp)

In the GNOME Screenshot tool, you get the option to add this delay. Say, you add 6 seconds of delay. You hit the take screenshot button and get 6 seconds to do/show what you intend here. After 6 seconds, it automatically takes the screenshot.

## Any tricks up your sleeve?

That’s all the tips I had on GNOME Screenshot tool. If you haven’t used it extensively, you should find it helpful. If you are already a pro, perhaps you know something that can be added to this article? Share it with the rest of us in the comment section, please.