Cleanup
This commit is contained in:
parent
ad5c82fea8
commit
0f76b73cfa
6
bin/ss
6
bin/ss
|
@ -1,6 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Start taking screenshots every N seconds, until this script is called again
|
||||
# Start taking screenshots every N seconds, until this script is
|
||||
# called again.
|
||||
|
||||
if [ ! -f ~/.ss ]; then
|
||||
dir="$1"
|
||||
if [ $# -eq 0 ]; then
|
||||
|
@ -8,7 +10,7 @@ if [ ! -f ~/.ss ]; then
|
|||
dir=~/Desktop/ss
|
||||
fi
|
||||
echo "$dir" > ~/.ss
|
||||
echo "Timelapse, go!"
|
||||
echo "Timelapse, go!"
|
||||
i=1;while [ -f ~/.ss ];do screencapture -t jpg -x "$dir/$i.jpg"; let i++;sleep 5; done &
|
||||
else
|
||||
echo "Deactivating timelapse! Images in: $(cat ~/.ss)/"
|
||||
|
|
Loading…
Reference in a new issue