scrot es an app that is executed through the terminal, it allows us to take screenshots or screenshots of our desktop, of a specific application, it all depends on what we want.
Scrot installation
In their official repositories there should be a package with the same name, scrot, they just have to install it. For example:
In distros like Debian, Ubuntu or derivatives it would be:
sudo apt-get install scrot
In ArchLinux or other distros that use pacman it would be:
yaourt -S scrot
Using the tool
To take a screenshot we simply have to run it in a terminal, as shown in the image above:
scrot
The image will be saved in our Home or Personal Folder, although if we put the final image as the first parameter, that is where it will be saved, this in case we want to save the screenshot directly in another folder, for example:
scrot $HOME/Pictures/Screenshots/screenshot-nuevo.png
By default it takes the screenshot with a quality of 75%, you can specify the quality of the capture with the -q parameter, for example suppose we want 100% quality, it would be:
scrot -q 100
Also (and this is a really useful option) we can specify that we also want to obtain a thumbnail, that is, we will have the complete screenshot and also a smaller sample image. For this we will use the -t parameter followed by the percent of total thumbnail size, for example if we want to take a screenshot and also generate a thumbnail that is 20% of the size of the screenshot, it would be:
scrot -t 20
There are times when we want to wait a few seconds before the screenshot is taken, to set a delay or wait before taking we add the -c parameter. Suppose we want to wait 5 seconds before the screenshot is taken:
scrot -c 5
In short, more options can be found by:
man scrot
This has been all, I hope it has been useful to you.
A question. If access to a server remotely via ssh. (The server does have a graphical environment. Could you take screenshots of that environment?
Yes, I have it installed. Only instead of launching it in a shell, I have my dear openbox configured so that pressing alt + s saves a capture in a certain file. If I want to take several captures, then I rename the file (it is saved in my home) and that's it. It is a good idea to combine scrot with the keybinds of your desktop environment. It also makes a beep through the speakers when the capture is taken.
regards
In archlinux it is in the official repositories, so Yaourt is not used, it would be:
# pacman -S scrot
With yaourt you also install from the official repos, so the distinction doesn't matter much, don't you think? 😉
Excellent. I was already getting bored of that XFCE Screenshot.
I have it combined as a keyboard shortcut to take screenshots.
The thing is that you can capture a window, the entire desktop or a part selected with the mouse.
In addition to creating a folder for the captures, it names them with the date and time (in case we do several consecutive ones) and with the measurements.
This is the script: http://paste.desdelinux.net/?dl=4987
* (take into account the file manager of each one. I use rox)
#! / Bin / bash
# Scrip to take a quick screenshot of the part selected with the mouse.
# You can also capture an application (without a window) by clicking on it.
# It will create (if it does not already exist) a folder called "Captures" in the user folder with the captures made.
# When finished it will open the folder with rox-filer.
scrot -s -e 'if [! -d ~ / Captures]; then \
mkdir ~ / Captures \
fi\
mv $ f ~ / Captures / | rox ~ / Captures'
Although I am not going to use your script,. you have given me the idea of separating the captures by date lest they be overwritten
regards
How interesting, the terminal has no limits.
Interesting, to make a little spy program. Muahahah
To take the screenshot with a count, it is not only the -c option followed by the number of seconds, but also, with the -d option before the number of seconds. In fact, with scrot –help, you will find that .c only works is accompanied by -d. https://fbcdn-sphotos-c-a.akamaihd.net/hphotos-ak-prn1/t1.0-9/10296953_658754724201323_8914215320240877838_n.jpg
Interesting article!! I was just going to comment on what cosmoscalibur said right now, that the -c option has to be accompanied by -d for it to work.
A greeting!
@cosmoscalibur
Your input is appreciated.
Greetings to Paula Andrea 😛
(when posting personal snapshots, try to trim them first)
Good utility for pc with few resources. Thank you
Perfect, thank you very much!