./capture_screenshots.sh EACH_SECONDS [FULL_PATH]
Will capture screenshots every EACH_SECONDS
in FULL_PATH
, default path is $HOME/Pictures/screenshots
- Bash/KSH (probably works with others too)
- scrot to capture screenshots, but you can configure other command
CAPTURE_SCREENSHOTS_COMMAND
defaults toscrot
: Set command to capture screenshotsCAPTURE_SCREENSHOTS_FILENAME
defaults to%s.png
(supported by scrot!): Set screenshot filename
It's a good idea to copy it in a place in your $PATH
, like /usr/local/bin
.
- Don't use SECONDS variable, as is not POSIX