mirror of
https://github.com/notwa/rc
synced 2024-07-07 13:39:57 -07:00
11 lines
261 B
Bash
Executable File
11 lines
261 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)
|
|
echo $now
|
|
scrot ~/$now.png -e "optipng -quiet \$f" "$@" \
|
|
&& mv ~/$now.png ~/Dropbox/Public/screenshots/
|
|
}
|
|
scropt "$@"
|