1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-11-05 03:39:02 -08:00
rc/sh/scropt

11 lines
261 B
Text
Raw Normal View History

2013-06-28 05:22:14 -07:00
#!/usr/bin/env bash
2015-12-12 06:39:45 -08:00
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/
}
scropt "$@"