This commit is contained in:
Henrik Lissner 2014-11-19 01:21:21 -05:00
parent ad5c82fea8
commit 0f76b73cfa
2 changed files with 6 additions and 3 deletions

6
bin/ss
View file

@ -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)/"

3
zshrc
View file

@ -12,7 +12,8 @@ fi
source ~/.zsh/aliases
# Init extra niceties
# Initialize rbenv and pyenv; rehashing slows down zsh startup, so we
# disable it.
is-callable 'rbenv' && eval "$(rbenv init - --no-rehash)"
if is-callable 'pyenv'; then
eval "$(pyenv init - --no-rehash)"