1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-11-05 15:49:02 -08:00

update scropt

This commit is contained in:
Connor Olding 2016-03-12 07:04:43 -08:00
parent 1c79f54129
commit cccc73924c
2 changed files with 3 additions and 3 deletions

0
sh/now Normal file → Executable file
View file

View file

@ -3,8 +3,8 @@
scropt() {
local now=
which ~/sh/now 2>/dev/null >/dev/null && now=$(~/sh/now) || now=$(date +%F_%T)
echo $now
scrot ~/$now.png -e "optipng -quiet \$f" "$@" \
&& mv ~/$now.png ~/Dropbox/Public/screenshots/
local fn="$HOME/play/$now.png"
scrot "$fn" -e "optipng -quiet \$f" "$@"
echo "$fn"
}
scropt "$@"