./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_COMMANDdefaults toscrot: Set command to capture screenshotsCAPTURE_SCREENSHOTS_FILENAMEdefaults 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