Created
February 22, 2017 07:54
-
-
Save ChatchaiJ/504900c123100fdf85760bbff051dfcf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
D="`date +%Y/%m/%d`" | |
F="`date +%H%M`.jpg" | |
DS="${HOME}/Pictures/ScreenShot/$D" | |
DC="${HOME}/Pictures/CameraShot/$D" | |
[ ! -d "$DS" ] && mkdir -p $DS | |
[ ! -d "$DC" ] && mkdir -p $DC | |
export DISPLAY=:0.0 | |
fswebcam -q "$DC/$F" | |
scrot -z -d 5 -q 25 "$DS/$F" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment