mirror of
https://github.com/notwa/rc
synced 2024-11-05 00:19:02 -08:00
10 lines
239 B
Bash
Executable file
10 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 "$@"
|