1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-11-05 21:39:03 -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() { scropt() {
local now= local now=
which ~/sh/now 2>/dev/null >/dev/null && now=$(~/sh/now) || now=$(date +%F_%T) which ~/sh/now 2>/dev/null >/dev/null && now=$(~/sh/now) || now=$(date +%F_%T)
echo $now local fn="$HOME/play/$now.png"
scrot ~/$now.png -e "optipng -quiet \$f" "$@" \ scrot "$fn" -e "optipng -quiet \$f" "$@"
&& mv ~/$now.png ~/Dropbox/Public/screenshots/ echo "$fn"
} }
scropt "$@" scropt "$@"