Scrot is a tool for screenshots in Linux. The method used is simple and can achieve effects such as full-screen interception, area interception, delayed interception, etc. Let's take a look at how to use this tool.
Installation of Scrot:
sudo apt-get install scrot
Usage
1) Full screen capture
scrot
2) Area interception
scrot -s
3) More ways to use
scrot -h
FYI, more parameter introduction:
parameter | Introduction | description |
---|---|---|
-h | –help | display this help and exit |
-v | –version | output version information and exit |
-a | –autoselect | non-interactively choose a rectangle of x,y,w,h |
-b | –border | When selecting a window, grab wm border too |
-c | –count | show a countdown before taking the shot |
-d | –delay | NUM wait NUM seconds before taking a shot |
-e | –exec | APP run APP on the resulting screenshot |
-q | –quality | NUM Image quality (1-100) high value means high size, low compression. Default: 75.For lossless compression formats, like png,low quality means high compression. |
-m | –multidisp | For multiple heads, grab shot from each and join them together. |
-s | –select | interactively choose a window or rectangle with the mouse |
-u | –focused | use the currently focused window |
-t | –thumb | NUM generate thumbnail too. NUM is the percentage of the original size for the thumbnail to be, or the geometry in percent, e.g. 50x60 or 80x20. |
-with | –silent | Prevent beeping |