diff --git a/sh/now b/sh/now old mode 100644 new mode 100755 diff --git a/sh/scropt b/sh/scropt index c1b40fb..52c73ed 100755 --- a/sh/scropt +++ b/sh/scropt @@ -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 "$@"