首页 技术 正文
技术 2022年11月12日
0 收藏 773 点赞 4,838 浏览 1928 个字

2017-08-22 13:52:52

sudo apt-get install scrot

捕捉活动窗口(按下回车后,3秒之内点击要捕捉的窗口):

scrot -d 3 -u

捕捉选定的区域(按下回车后,鼠标左键选定区域即可):

scrot -s

scrot帮助:

Usage : scrot [OPTIONS]… [FILE]
Where FILE is the target file for the screenshot.
If FILE is not specified, a date-stamped file will be dropped in the
current directory.
See man scrot for more details
-h, –help display this help and exit
-v, –version output version information and exit
-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. 50×60 or 80×20.
-z, –silent Prevent beeping

SPECIAL STRINGS
Both the –exec and filename parameters can take format specifiers
that are expanded by scrot when encountered.
There are two types of format specifier. Characters preceded by a ‘%’
are interpreted by strftime(2). See man strftime for examples.
These options may be used to refer to the current date and time.
The second kind are internal to scrot and are prefixed by ‘$’
The following specifiers are recognised:
$f image path/filename (ignored when used in the filename)
$m thumbnail path/filename
$n image name (ignored when used in the filename)
$s image size (bytes) (ignored when used in the filename)
$p image pixel size
$w image width
$h image height
$t image format
$$ prints a literal ‘$’
\n prints a newline (ignored when used in the filename)
Example:
scrot ‘%Y-%m-%d_$wx$h_scrot.png’ -e ‘mv $f ~/images/shots/’
Creates a file called something like 2000-10-30_2560x1024_scrot.png
and moves it to your images directory.

This program is free software see the file COPYING for licensing info.
Copyright Tom Gilbert 2000
Email bugs to <scrot_sucks@linuxbrit.co.uk>

上一篇: MySql中的约束
下一篇: BZOJ2512 : Groc
相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,078
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,553
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,402
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,177
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,814
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,898