How to take screenshots in linux

Best Tools For Taking and Editing Screenshots in Linux

Here are several ways you can take screenshots and edit the screenshots by adding text, arrows etc. Instructions and mentioned screenshot tools are valid for Ubuntu and other major Linux distributions.

When I switched from Windows to Ubuntu as my primary OS, I was first worried about the availability of screenshot tools. It is easy to utilize the default keyboard shortcuts to take screenshots, but with a standalone tool, I get to annotate/edit the image while taking the screenshot. In this article, I will introduce you to the default methods/tools to take a screenshot while also covering the list of the best screenshot tools available for Linux.

Method 1: The default way to take screenshots in Linux

Do you want to capture the image of your entire screen? A specific region? A specific window?

If you just want a simple screenshot without any annotations/fancy editing capabilities, the default keyboard shortcuts will do the trick. These are not specific to Ubuntu. Almost all Linux distributions and desktop environments support these keyboard shortcuts.

Let’s take a look at the list of keyboard shortcuts you can utilize: PrtScSave a screenshot of the entire screen to the “Pictures” directory.
Shift + PrtScSave a screenshot of a specific region to Pictures.
Alt + PrtScSave a screenshot of the current window to Pictures.
Ctrl + PrtScCopy the screenshot of the entire screen to the clipboard.
Shift + Ctrl + PrtScCopy the screenshot of a specific region to the clipboard.
Ctrl + Alt + PrtScCopy the screenshot of the current window to the clipboard. As you can see, taking screenshots in Linux is absolutely simple with the default GNOME screenshot tool. However, if you want to immediately annotate (or other editing features) without importing the screenshot to another application, you can use a dedicated screenshot tool.

Method 2: Take and edit screenshots in Linux with Flameshot

flameshot

Feature Overview

  • Annotate (highlight, point, add text, box in)
  • Blur part of an image
  • Crop part of an image
  • Upload to Imgur
  • Open screenshot with another app

Flameshot is a quite impressive screenshot tool which arrived on GitHub last year.

If you have been searching for a screenshot tool that helps you annotate, blur, mark, and upload to imgur while being actively maintained unlike some outdated screenshot tools, Flameshot should be the one to have installed.

Fret not, we will guide you on how to install it and configure it as per your preferences.

To install it on Ubuntu, you just need to search for it on Ubuntu Software center and get it installed. In case you want to use the terminal, here’s the command for it:

sudo apt install flameshot

If you face any trouble installing, you can follow their official installation instructions. After installation, you need to configure it. Well, you can always search for it and launch it, but if you want to trigger the Flameshot screenshot tool by using PrtSc key, you need to assign a custom keyboard shortcut.

Читайте также:  Linux просмотр размера папки

Here’s how you can do that:

  1. Head to the system settings and navigate your way to the Keyboard settings.
  2. You will find all the keyboard shortcuts listed there, ignore them and scroll down to the bottom. Now, you will find a + button.
  3. Click the “+” button to add a custom shortcut. You need to enter the following in the fields you get:
    Name:Anything You Want
    Command: /usr/bin/flameshot gui
  4. Finally, set the shortcut to PrtSc – which will warn you that the default screenshot functionality will be disabled – so proceed doing it.

For reference, your custom keyboard shortcut field should look like this after configuration:

Method 3: Take and edit screenshots in Linux with Shutter

  • Annotate (highlight, point, add text, box in)
  • Blur part of an image
  • Crop part of an image
  • Upload to image hosting sites

Shutter is a popular screenshot tool available for all major Linux distributions. Though it seems to be no more being actively developed, it is still an excellent choice for handling screenshots.

You might encounter certain bugs/errors. The most common problem with Shutter on any latest Linux distro releases is that the ability to edit the screenshots is disabled by default along with the missing applet indicator. But, fret not, we have a solution to that. You just need to follow our guide to fix the disabled edit option in Shutter and bring back the applet indicator.

After you’re done fixing the problem, you can utilize it to edit the screenshots in a jiffy.

To install shutter, you can browse the software center and get it from there. Alternatively, you can use the following command in the terminal to install Shutter in Ubuntu-based distributions:

As we saw with Flameshot, you can either use the app launcher to search for Shutter and manually launch the application, or you can follow the same instructions (with a different command) to set a custom shortcut to trigger Shutter when you press the PrtSc key.

If you are going to assign a custom keyboard shortcut, you need to use the following in the command field:

Method 4: Use GIMP to take screenshots in Linux

  • Advanced Image Editing Capabilities (Scaling, Adding filters, color correction, Add layers, Crop, and so on.)
  • Take a screenshot of the selected area

If you use GIMP a lot and you probably want some advance edits on your screenshots, GIMP would be a good choice.

You should already have it installed, if not, you can always head to your software center to install it. If you have trouble installing, you can always refer to their official website for installation instructions.

Читайте также:  Linux mint поменять ttl

To take a screenshot with GIMP, you need first to launch it, and then navigate your way through File->Create->Screenshot.

After you click on the screenshot option, you will be greeted with a couple of tweaks to control the screenshot. That’s just it. Click “Snap” to take the screenshot, and the image will automatically appear within GIMP, ready for you to edit.

Method 5: Taking screenshots in Linux using command-line tools

This section is strictly for terminal lovers. If you like using the terminal, you can utilize the GNOME screenshot tool or ImageMagick or Deepin Scrot– which comes baked in on most of the popular Linux distributions.

To take a screenshot instantly, enter the following command:

GNOME Screenshot (for GNOME desktop users)

To take a screenshot with a delay, enter the following command (here, 5 – is the number of seconds you want to delay)

GNOME screenshot is one of the default tools that exists in all distributions with GNOME desktop.

ImageMagick

ImageMagick should be already pre-installed on your system if you are using Ubuntu, Mint, or any other popular Linux distribution. In case, it isn’t there, you can always install it by following the official installation instructions (from source). In either case, you can enter the following in the terminal:

sudo apt-get install imagemagick

After you have it installed, you can type in the following commands to take a screenshot:

To take the screenshot of your entire screen:

import -window root image.png

Here, “image.png” is your desired name for the screenshot.

To take the screenshot of a specific area:

Deepin Scrot

Deepin Scrot is a slightly advanced terminal-based screenshot tool. Similar to the others, you should already have it installed. If not, get it installed through the terminal by typing:

sudo apt-get install scrot

After having it installed, follow the instructions below to take a screenshot:

To take a screenshot of the entire screen:

To take a screenshot of the selected aread:

Wrapping Up

So, these are some of the best screenshot tools available for Linux.

If you find a better screenshot tool than the ones mentioned in our article, feel free to let us know in the comments below.

Also, do tell us about your favorite screenshot tool!

Источник

How do I take a screenshot?

enter image description here

You may find the Pictures in your Home Picture folder, this will normally work with any operative system.

You need to go to ~/Pictures/ using the Files program and look for a file named Screenshot from 2020-02-14 12-09-09.png

@fukanchik in Lubuntu, the image is saved in /home/yourusername as something like 2020-03-29-122645_1366x768_scrot.png

Shift + Prnt Scrn allows you to print a selection of the screen.

Print Screen alone will take a screenshot.

Only GNOME 2.x: Hold Super (The Windows Icon on your keyboard) to display all key shortcuts. Here on GNOME Shell.

I think holding SUPER/WIN to display shortcuts is actually Unity desktop feature, not MATE/Gnome 2 or Gnome 3.

Читайте также:  Перенос файлов через командную строку linux

View the available short-cuts under

On GNOME Shell (17.10+): Settings -> Keyboard Shortcuts -> Screenshots

screenshot

or on Unity (before 17.10): Settings -> Devices -> Keyboard

enter image description here

If you have less options view Create custom short-cuts

If you would like to use a tool you may want to use Gimp, Shutter, etc. View more in This thread

As of Ubunutu 14.04 «screenshot of window» only takes the part in the current workspace. For example if your window spans more than one visible workspace, because it is longer or wider, then only the picture is cropped to the current workspace.

Open Dash (upper icon on the launcher) and search screenshot.

You can use «shutter» for taking a snapshot of a selected area. You need to do

sudo apt-get install shutter 

I’ve moved to this due to gnome-screenshot adding an orange tint to the background of selections on Ubuntu 16.04

Taking it and saving it to ~/Pictures

  • Print — Take a screenshot
  • Alt + Print — Take a screenshot of a window
  • Shift + Print — Take a screenshot of an area

Taking it and copying it to clipboard

(just add Ctrl to the shortkeys above)

  • Ctrl + Print — Take a screenshot
  • Ctrl + Alt + Print — Take a screenshot of a window
  • Ctrl + Shift + Print — Take a screenshot of an area

Thanks for that. I’m going to swap those shortcuts right now. I don’t want it saving the screenshots in files unless I tell it to do so

Use GIMP. Launch GIMP and go to “File”->”Create”->”Screenshot”. Choose to capture a single window (with/without window border), the entire screen (with/without mouse pointer) or a specific region of the screen. Click on the “Snap” button to start capturing.

You can refer this from Ubuntu documentation on taking screenshots:

Take a screenshot

  1. Open Screenshot from the Activities overview.
  2. In the Screenshot window, select whether to grab the whole screen, the current window, or an area of the screen. Set a delay if you need to select a window or otherwise set up your desktop for the screenshot. Then choose any effects you want.
  3. Click Take Screenshot.
  4. If you selected Select area to grab, the pointer changes into a crosshair. Click and drag the area you want for the screenshot.
  5. In the Save Screenshot window, enter a file name and choose a folder, then click Save. Alternatively, import the screenshot directly into an image-editing application without saving it first. Click Copy to Clipboard then paste the image in the other application, or drag the screenshot thumbnail to the application.

Keyboard shortcuts

Quickly take a screenshot of the desktop, a window, or an area at any time using these global keyboard shortcuts:

  • Prt Scrn to take a screenshot of the desktop.
  • Alt+Prt Scrn to take a screenshot of a window.
  • Shift+Prt Scrn to take a screenshot of an area you select.

When you use a keyboard shortcut, the image is automatically saved in your Pictures folder in your home folder with a file name that begins with Screenshot and includes the date and time it was taken.

Источник

Оцените статью
Adblock
detector