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 #!/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 if [ ! -f ~/.ss ]; then
dir="$1" dir="$1"
if [ $# -eq 0 ]; then if [ $# -eq 0 ]; then
@ -8,7 +10,7 @@ if [ ! -f ~/.ss ]; then
dir=~/Desktop/ss dir=~/Desktop/ss
fi fi
echo "$dir" > ~/.ss 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 & i=1;while [ -f ~/.ss ];do screencapture -t jpg -x "$dir/$i.jpg"; let i++;sleep 5; done &
else else
echo "Deactivating timelapse! Images in: $(cat ~/.ss)/" echo "Deactivating timelapse! Images in: $(cat ~/.ss)/"

3
zshrc
View file

@ -12,7 +12,8 @@ fi
source ~/.zsh/aliases 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)" is-callable 'rbenv' && eval "$(rbenv init - --no-rehash)"
if is-callable 'pyenv'; then if is-callable 'pyenv'; then
eval "$(pyenv init - --no-rehash)" eval "$(pyenv init - --no-rehash)"