1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-05-20 02:43:23 -07:00
rc/sh/scropt
2016-03-12 07:04:43 -08:00

11 lines
239 B
Bash
Executable File

#!/usr/bin/env bash
scropt() {
local now=
which ~/sh/now 2>/dev/null >/dev/null && now=$(~/sh/now) || now=$(date +%F_%T)
local fn="$HOME/play/$now.png"
scrot "$fn" -e "optipng -quiet \$f" "$@"
echo "$fn"
}
scropt "$@"