Cleanup
This commit is contained in:
parent
ad5c82fea8
commit
0f76b73cfa
6
bin/ss
6
bin/ss
|
@ -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
3
zshrc
|
@ -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)"
|
||||||
|
|
Loading…
Reference in a new issue