A console screenshot utility.
Abandoned, was www.linuxbrit.co.uk/scrot/
A good use is:
\scrot --select 'screenshot--%Y-%m-%d_%H:%M--$wx$h.png' --exec '\mv $f /l/__ ; \gpicview /l/__/$f' \\
Replace GPicView with your favourite image viewer.
- 2017-12-09 on Devuan-1.0.0-jessie-i386-DVD
- 2016-03-30 - 0.8, on Slackware 14.1
-
2016-03-25 - 0.8, on Lubuntu 14.04.4 LTS
Table of Contents [hide]
2016-03-30 - 0.8 ∞
This was installed with slpkg:
\slpkg -s sbo scrot
Spoiler
+============================================================================== | Package New version Arch Build Repos Size +============================================================================== Installing: scrot 0.8 i486 SBo Installing for dependencies: imlib2 1.4.7 i486 SBo giblib 1.2.4 i486 SBo
Seems to work just fine.
-
\scrot --help
has a typo:
-s, --select interactively choose a window or rectnagle
2016-03-25 - 0.8 ∞
This came with Lubuntu.
Take a screenshot ∞
\scrot
Take a screenshot of a window ∞
\scrot --select --delay 5
Specify filename and directory ∞
Filename ∞
WARNING - This will overwrite an existing file, with no prompt.
\scrot 'filename.png'
Spoiler
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.
Target directory ∞
\scrot --exec '\mv $f /path/to/dir/'
Open image with an application ∞
\scrot --exec APP
Last updated 2017-12-09 at 01:04:39