项目作者: hacktivista

项目描述 :
Will capture screenshots in a loop
高级语言: Shell
项目地址: git://github.com/hacktivista/capture_screenshots.git
创建时间: 2017-11-08T13:46:53Z
项目社区:https://github.com/hacktivista/capture_screenshots

开源协议:The Unlicense

下载


capture_screenshots.sh

  1. ./capture_screenshots.sh EACH_SECONDS [FULL_PATH]

Will capture screenshots every EACH_SECONDS in FULL_PATH, default path is $HOME/Pictures/screenshots

Requirements

  • Bash/KSH (probably works with others too)
  • scrot to capture screenshots, but you can configure other command

Configuration

Environment variables

  • CAPTURE_SCREENSHOTS_COMMAND defaults to scrot: Set command to capture screenshots
  • CAPTURE_SCREENSHOTS_FILENAME defaults to %s.png (supported by scrot!): Set screenshot filename

Installation

It’s a good idea to copy it in a place in your $PATH, like /usr/local/bin.

Wishlist

  • Don’t use SECONDS variable, as is not POSIX