mirror of
https://github.com/notwa/rc
synced 2024-05-18 17:53:23 -07:00
13 lines
280 B
Bash
Executable File
13 lines
280 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# YES_ZSH
|
|
|
|
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"
|
|
}
|
|
|
|
[ "${SOURCING:-0}" -gt 0 ] || scropt "$@"
|